]> git.karo-electronics.de Git - linux-beck.git/commit
treewide: Convert uses of struct resource to resource_size(ptr)
authorJoe Perches <joe@perches.com>
Thu, 9 Jun 2011 16:13:32 +0000 (09:13 -0700)
committerJiri Kosina <jkosina@suse.cz>
Fri, 10 Jun 2011 12:55:36 +0000 (14:55 +0200)
commit28f65c11f2ffb3957259dece647a24f8ad2e241b
tree6b7621d09d10df89eedd908d4506fb9f457a909f
parent140a1ef2f91a00e1d25f0878c193abdc25bf6ebe
treewide: Convert uses of struct resource to resource_size(ptr)

Several fixes as well where the +1 was missing.

Done via coccinelle scripts like:

@@
struct resource *ptr;
@@

- ptr->end - ptr->start + 1
+ resource_size(ptr)

and some grep and typing.

Mostly uncompiled, no cross-compilers.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
168 files changed:
arch/arm/common/scoop.c
arch/arm/mach-at91/at91sam9261_devices.c
arch/arm/mach-mv78xx0/pcie.c
arch/arm/mach-u300/core.c
arch/arm/plat-mxc/pwm.c
arch/arm/plat-s5p/sysmmu.c
arch/arm/plat-samsung/pm-check.c
arch/avr32/kernel/setup.c
arch/avr32/mach-at32ap/extint.c
arch/avr32/mach-at32ap/hsmc.c
arch/avr32/mach-at32ap/intc.c
arch/avr32/mach-at32ap/pio.c
arch/microblaze/pci/pci-common.c
arch/mips/pci/pci-rc32434.c
arch/mips/pci/pci-vr41xx.c
arch/mips/powertv/asic/asic_devices.c
arch/powerpc/include/asm/macio.h
arch/powerpc/kernel/machine_kexec.c
arch/powerpc/kernel/pci-common.c
arch/powerpc/platforms/52xx/mpc52xx_pci.c
arch/powerpc/platforms/83xx/km83xx.c
arch/powerpc/platforms/83xx/mpc832x_mds.c
arch/powerpc/platforms/83xx/mpc834x_mds.c
arch/powerpc/platforms/83xx/mpc836x_mds.c
arch/powerpc/platforms/83xx/usb.c
arch/powerpc/platforms/85xx/sbc8560.c
arch/powerpc/platforms/85xx/xes_mpc85xx.c
arch/powerpc/platforms/cell/celleb_scc_epci.c
arch/powerpc/platforms/cell/celleb_scc_pciex.c
arch/powerpc/platforms/cell/spu_manage.c
arch/powerpc/platforms/chrp/pci.c
arch/powerpc/platforms/pasemi/dma_lib.c
arch/powerpc/platforms/powermac/nvram.c
arch/powerpc/platforms/powermac/pci.c
arch/powerpc/platforms/powermac/time.c
arch/powerpc/sysdev/axonram.c
arch/powerpc/sysdev/cpm1.c
arch/powerpc/sysdev/cpm_common.c
arch/powerpc/sysdev/dart_iommu.c
arch/powerpc/sysdev/fsl_msi.c
arch/powerpc/sysdev/fsl_pci.c
arch/powerpc/sysdev/fsl_rio.c
arch/powerpc/sysdev/ipic.c
arch/powerpc/sysdev/mmio_nvram.c
arch/powerpc/sysdev/mpc8xx_pic.c
arch/powerpc/sysdev/mv64x60_udbg.c
arch/powerpc/sysdev/ppc4xx_pci.c
arch/powerpc/sysdev/qe_lib/qe_ic.c
arch/powerpc/sysdev/qe_lib/qe_io.c
arch/powerpc/sysdev/xics/icp-native.c
arch/sh/kernel/io_trapped.c
arch/sh/kernel/machine_kexec.c
arch/sparc/kernel/ioport.c
arch/sparc/kernel/pci.c
arch/tile/kernel/setup.c
arch/x86/kernel/pci-calgary_64.c
arch/x86/kernel/probe_roms.c
drivers/char/bsr.c
drivers/char/xilinx_hwicap/xilinx_hwicap.c
drivers/dma/mv_xor.c
drivers/edac/cell_edac.c
drivers/edac/mpc85xx_edac.c
drivers/gpio/gpio-u300.c
drivers/ide/palm_bk3710.c
drivers/ide/tx4939ide.c
drivers/input/serio/sa1111ps2.c
drivers/media/video/davinci/vpif.c
drivers/media/video/omap24xxcam.c
drivers/message/i2o/iop.c
drivers/mfd/tc6387xb.c
drivers/misc/atmel-ssc.c
drivers/misc/atmel_pwm.c
drivers/mmc/host/dw_mmc.c
drivers/mtd/maps/bfin-async-flash.c
drivers/mtd/maps/ixp2000.c
drivers/mtd/maps/pxa2xx-flash.c
drivers/mtd/nand/atmel_nand.c
drivers/mtd/nand/bcm_umi_nand.c
drivers/mtd/nand/mpc5121_nfc.c
drivers/net/bcm63xx_enet.c
drivers/net/can/softing/softing_main.c
drivers/net/davinci_emac.c
drivers/net/ethoc.c
drivers/net/fec_mpc52xx.c
drivers/net/fs_enet/mii-bitbang.c
drivers/net/fs_enet/mii-fec.c
drivers/net/gianfar_ptp.c
drivers/net/ibm_newemac/core.c
drivers/net/macb.c
drivers/net/mv643xx_eth.c
drivers/net/pxa168_eth.c
drivers/net/sb1250-mac.c
drivers/parport/parport_ax88796.c
drivers/pci/hotplug/shpchp_sysfs.c
drivers/pcmcia/at91_cf.c
drivers/pcmcia/electra_cf.c
drivers/pcmcia/rsrc_iodyn.c
drivers/pcmcia/rsrc_nonstatic.c
drivers/pnp/pnpacpi/rsparser.c
drivers/pnp/pnpbios/rsparser.c
drivers/rtc/rtc-at32ap700x.c
drivers/rtc/rtc-cmos.c
drivers/rtc/rtc-ds1286.c
drivers/rtc/rtc-ds1511.c
drivers/rtc/rtc-ds1742.c
drivers/rtc/rtc-m48t35.c
drivers/rtc/rtc-m48t59.c
drivers/rtc/rtc-mrst.c
drivers/rtc/rtc-puv3.c
drivers/rtc/rtc-s3c.c
drivers/staging/generic_serial/ser_a2232.c
drivers/staging/gma500/psb_gtt.c
drivers/tty/serial/bfin_5xx.c
drivers/tty/serial/imx.c
drivers/tty/serial/m32r_sio.c
drivers/tty/serial/omap-serial.c
drivers/tty/serial/pxa.c
drivers/tty/serial/sunsu.c
drivers/tty/serial/vt8500_serial.c
drivers/uio/uio_pdrv.c
drivers/uio/uio_pdrv_genirq.c
drivers/usb/gadget/atmel_usba_udc.c
drivers/usb/gadget/fsl_udc_core.c
drivers/usb/host/ehci-ath79.c
drivers/usb/host/ehci-cns3xxx.c
drivers/usb/host/ehci-fsl.c
drivers/usb/host/ehci-grlib.c
drivers/usb/host/ehci-ixp4xx.c
drivers/usb/host/ehci-octeon.c
drivers/usb/host/ehci-pmcmsp.c
drivers/usb/host/ehci-ppc-of.c
drivers/usb/host/ehci-w90x900.c
drivers/usb/host/ehci-xilinx-of.c
drivers/usb/host/fhci-hcd.c
drivers/usb/host/ohci-ath79.c
drivers/usb/host/ohci-cns3xxx.c
drivers/usb/host/ohci-da8xx.c
drivers/usb/host/ohci-octeon.c
drivers/usb/host/ohci-ppc-of.c
drivers/usb/host/ohci-ppc-soc.c
drivers/usb/host/ohci-sa1111.c
drivers/usb/host/ohci-sm501.c
drivers/usb/host/ohci-tmio.c
drivers/usb/host/oxu210hp-hcd.c
drivers/usb/host/uhci-grlib.c
drivers/usb/host/whci/init.c
drivers/uwb/whc-rc.c
drivers/video/atmel_lcdfb.c
drivers/video/aty/atyfb_base.c
drivers/video/au1100fb.c
drivers/video/cobalt_lcdfb.c
drivers/video/controlfb.c
drivers/video/mb862xx/mb862xxfbdrv.c
drivers/video/msm/mdp.c
drivers/video/msm/msm_fb.c
drivers/video/nuc900fb.c
drivers/video/platinumfb.c
drivers/video/pxa168fb.c
include/linux/dio.h
include/linux/pnp.h
include/linux/zorro.h
kernel/kexec.c
sound/aoa/soundbus/i2sbus/core.c
sound/atmel/abdac.c
sound/atmel/ac97c.c
sound/ppc/pmac.c
sound/soc/fsl/fsl_ssi.c
sound/soc/fsl/mpc5200_dma.c