Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (43 commits)
fs: Merge split strings
treewide: fix potentially dangerous trailing ';' in #defined values/expressions
uwb: Fix misspelling of neighbourhood in comment
net, netfilter: Remove redundant goto in ebt_ulog_packet
trivial: don't touch files that are removed in the staging tree
lib/vsprintf: replace link to Draft by final RFC number
doc: Kconfig: `to be' -> `be'
doc: Kconfig: Typo: square -> squared
doc: Konfig: Documentation/power/{pm => apm-acpi}.txt
drivers/net: static should be at beginning of declaration
drivers/media: static should be at beginning of declaration
drivers/i2c: static should be at beginning of declaration
XTENSA: static should be at beginning of declaration
SH: static should be at beginning of declaration
MIPS: static should be at beginning of declaration
ARM: static should be at beginning of declaration
rcu: treewide: Do not use rcu_read_lock_held when calling rcu_dereference_check
Update my e-mail address
PCIe ASPM: forcedly -> forcibly
gma500: push through device driver tree
...

Fix up trivial conflicts:
- arch/arm/mach-ep93xx/dma-m2p.c (deleted)
- drivers/gpio/gpio-ep93xx.c (renamed and context nearby)
- drivers/net/r8169.c (just context changes)

+569 -676
+1 -2
.mailmap
··· 73 73 Mark Brown <broonie@sirena.org.uk> 74 74 Matthieu CASTET <castet.matthieu@free.fr> 75 75 Mayuresh Janorkar <mayur@ti.com> 76 - Michael Buesch <mb@bu3sch.de> 77 - Michael Buesch <mbuesch@freenet.de> 76 + Michael Buesch <m@bues.ch> 78 77 Michel Dänzer <michel@tungstengraphics.com> 79 78 Mitesh shah <mshah@teja.com> 80 79 Morten Welinder <terra@gnome.org>
+1 -1
Documentation/DocBook/v4l/io.xml
··· 210 210 <programlisting> 211 211 &v4l2-requestbuffers; reqbuf; 212 212 /* Our current format uses 3 planes per buffer */ 213 - #define FMT_NUM_PLANES = 3; 213 + #define FMT_NUM_PLANES = 3 214 214 215 215 struct { 216 216 void *start[FMT_NUM_PLANES];
+2 -2
Documentation/RCU/NMI-RCU.txt
··· 5 5 it is possible to use RCU to provide dynamic non-maskable interrupt 6 6 handlers, as well as dynamic irq handlers. This document describes 7 7 how to do this, drawing loosely from Zwane Mwaikambo's NMI-timer 8 - work in "arch/i386/oprofile/nmi_timer_int.c" and in 9 - "arch/i386/kernel/traps.c". 8 + work in "arch/x86/oprofile/nmi_timer_int.c" and in 9 + "arch/x86/kernel/traps.c". 10 10 11 11 The relevant pieces of code are listed below, each followed by a 12 12 brief explanation.
+1 -1
Documentation/blockdev/README.DAC960
··· 214 214 make config 215 215 make bzImage (or zImage) 216 216 217 - Then install "arch/i386/boot/bzImage" or "arch/i386/boot/zImage" as your 217 + Then install "arch/x86/boot/bzImage" or "arch/x86/boot/zImage" as your 218 218 standard kernel, run lilo if appropriate, and reboot. 219 219 220 220 To create the necessary devices in /dev, the "make_rd" script included in
+4 -4
Documentation/blockdev/ramdisk.txt
··· 64 64 is not required. Bits 11 to 13 are not currently used and may as well be zero. 65 65 These numbers are no magical secrets, as seen below: 66 66 67 - ./arch/i386/kernel/setup.c:#define RAMDISK_IMAGE_START_MASK 0x07FF 68 - ./arch/i386/kernel/setup.c:#define RAMDISK_PROMPT_FLAG 0x8000 69 - ./arch/i386/kernel/setup.c:#define RAMDISK_LOAD_FLAG 0x4000 67 + ./arch/x86/kernel/setup.c:#define RAMDISK_IMAGE_START_MASK 0x07FF 68 + ./arch/x86/kernel/setup.c:#define RAMDISK_PROMPT_FLAG 0x8000 69 + ./arch/x86/kernel/setup.c:#define RAMDISK_LOAD_FLAG 0x4000 70 70 71 71 Consider a typical two floppy disk setup, where you will have the 72 72 kernel on disk one, and have already put a RAM disk image onto disk #2. ··· 85 85 Putting that together gives 2^15 + 2^14 + 0 = 49152 for an rdev word. 86 86 So to create disk one of the set, you would do: 87 87 88 - /usr/src/linux# cat arch/i386/boot/zImage > /dev/fd0 88 + /usr/src/linux# cat arch/x86/boot/zImage > /dev/fd0 89 89 /usr/src/linux# rdev /dev/fd0 /dev/fd0 90 90 /usr/src/linux# rdev -r /dev/fd0 49152 91 91
+1 -1
Documentation/cpu-freq/cpu-drivers.txt
··· 168 168 to policy->max, and -if supported- select a performance-oriented 169 169 setting when policy->policy is CPUFREQ_POLICY_PERFORMANCE, and a 170 170 powersaving-oriented setting when CPUFREQ_POLICY_POWERSAVE. Also check 171 - the reference implementation in arch/i386/kernel/cpu/cpufreq/longrun.c 171 + the reference implementation in drivers/cpufreq/longrun.c 172 172 173 173 174 174
Documentation/devicetree/bindings/net/can/fsl-flexcan.txt
+10 -10
Documentation/feature-removal-schedule.txt
··· 199 199 Check: drivers/staging/cs5535_gpio/cs5535_gpio.c 200 200 Why: A newer driver replaces this; it is drivers/gpio/cs5535-gpio.c, and 201 201 integrates with the Linux GPIO subsystem. The old driver has been 202 - moved to staging, and will be removed altogether around 2.6.40. 202 + moved to staging, and will be removed altogether around 3.0. 203 203 Please test the new driver, and ensure that the functionality you 204 204 need and any bugfixes from the old driver are available in the new 205 205 one. ··· 294 294 Why: The support code for the old firmware hurts code readability/maintainability 295 295 and slightly hurts runtime performance. Bugfixes for the old firmware 296 296 are not provided by Broadcom anymore. 297 - Who: Michael Buesch <mb@bu3sch.de> 297 + Who: Michael Buesch <m@bues.ch> 298 298 299 299 --------------------------- 300 300 ··· 430 430 ---------------------------- 431 431 432 432 What: iwlwifi 50XX module parameters 433 - When: 2.6.40 433 + When: 3.0 434 434 Why: The "..50" modules parameters were used to configure 5000 series and 435 435 up devices; different set of module parameters also available for 4965 436 436 with same functionalities. Consolidate both set into single place ··· 441 441 ---------------------------- 442 442 443 443 What: iwl4965 alias support 444 - When: 2.6.40 444 + When: 3.0 445 445 Why: Internal alias support has been present in module-init-tools for some 446 446 time, the MODULE_ALIAS("iwl4965") boilerplate aliases can be removed 447 447 with no impact. ··· 482 482 ---------------------------- 483 483 484 484 What: iwlwifi disable_hw_scan module parameters 485 - When: 2.6.40 485 + When: 3.0 486 486 Why: Hareware scan is the prefer method for iwlwifi devices for 487 487 scanning operation. Remove software scan support for all the 488 488 iwlwifi devices. ··· 493 493 494 494 What: access to nfsd auth cache through sys_nfsservctl or '.' files 495 495 in the 'nfsd' filesystem. 496 - When: 2.6.40 496 + When: 3.0 497 497 Why: This is a legacy interface which have been replaced by a more 498 498 dynamic cache. Continuing to maintain this interface is an 499 499 unnecessary burden. ··· 519 519 ---------------------------- 520 520 521 521 What: noswapaccount kernel command line parameter 522 - When: 2.6.40 522 + When: 3.0 523 523 Why: The original implementation of memsw feature enabled by 524 524 CONFIG_CGROUP_MEM_RES_CTLR_SWAP could be disabled by the noswapaccount 525 525 kernel parameter (introduced in 2.6.29-rc1). Later on, this decision ··· 552 552 ---------------------------- 553 553 554 554 What: Support for UVCIOC_CTRL_ADD in the uvcvideo driver 555 - When: 2.6.42 555 + When: 3.2 556 556 Why: The information passed to the driver by this ioctl is now queried 557 557 dynamically from the device. 558 558 Who: Laurent Pinchart <laurent.pinchart@ideasonboard.com> ··· 560 560 ---------------------------- 561 561 562 562 What: Support for UVCIOC_CTRL_MAP_OLD in the uvcvideo driver 563 - When: 2.6.42 563 + When: 3.2 564 564 Why: Used only by applications compiled against older driver versions. 565 565 Superseded by UVCIOC_CTRL_MAP which supports V4L2 menu controls. 566 566 Who: Laurent Pinchart <laurent.pinchart@ideasonboard.com> ··· 568 568 ---------------------------- 569 569 570 570 What: Support for UVCIOC_CTRL_GET and UVCIOC_CTRL_SET in the uvcvideo driver 571 - When: 2.6.42 571 + When: 3.2 572 572 Why: Superseded by the UVCIOC_CTRL_QUERY ioctl. 573 573 Who: Laurent Pinchart <laurent.pinchart@ideasonboard.com> 574 574
+1 -1
Documentation/filesystems/nfs/nfsroot.txt
··· 226 226 cdrecord. 227 227 228 228 e.g. 229 - cdrecord dev=ATAPI:1,0,0 arch/i386/boot/image.iso 229 + cdrecord dev=ATAPI:1,0,0 arch/x86/boot/image.iso 230 230 231 231 For more information on isolinux, including how to create bootdisks 232 232 for prebuilt kernels, see http://syslinux.zytor.com/
+1 -1
Documentation/i2o/ioctl
··· 110 110 ENOBUFS Buffer not large enough. If this occurs, the required 111 111 buffer length is written into *(lct->reslen) 112 112 113 - VI. Settting Parameters 113 + VI. Setting Parameters 114 114 115 115 SYNOPSIS 116 116
+1 -1
Documentation/isdn/README.HiSax
··· 506 506 <ISDN subsystem - ISDN support -- HiSax> 507 507 make clean; make zImage; make modules; make modules_install 508 508 2. Install the new kernel 509 - cp /usr/src/linux/arch/i386/boot/zImage /etc/kernel/linux.isdn 509 + cp /usr/src/linux/arch/x86/boot/zImage /etc/kernel/linux.isdn 510 510 vi /etc/lilo.conf 511 511 <add new kernel in the bootable image section> 512 512 lilo
+19 -19
Documentation/kbuild/makefiles.txt
··· 441 441 specified if first option are not supported. 442 442 443 443 Example: 444 - #arch/i386/kernel/Makefile 444 + #arch/x86/kernel/Makefile 445 445 vsyscall-flags += $(call cc-ldoption, -Wl$(comma)--hash-style=sysv) 446 446 447 447 In the above example, vsyscall-flags will be assigned the option ··· 460 460 supported to use an optional second option. 461 461 462 462 Example: 463 - #arch/i386/Makefile 463 + #arch/x86/Makefile 464 464 cflags-y += $(call cc-option,-march=pentium-mmx,-march=i586) 465 465 466 466 In the above example, cflags-y will be assigned the option ··· 522 522 even though the option was accepted by gcc. 523 523 524 524 Example: 525 - #arch/i386/Makefile 525 + #arch/x86/Makefile 526 526 cflags-y += $(shell \ 527 527 if [ $(call cc-version) -ge 0300 ] ; then \ 528 528 echo "-mregparm=3"; fi ;) ··· 802 802 is not sufficient this sometimes needs to be explicit. 803 803 804 804 Example: 805 - #arch/i386/boot/Makefile 805 + #arch/x86/boot/Makefile 806 806 subdir- := compressed/ 807 807 808 808 The above assignment instructs kbuild to descend down in the ··· 812 812 final bootimage there is an optional target named archclean: 813 813 814 814 Example: 815 - #arch/i386/Makefile 815 + #arch/x86/Makefile 816 816 archclean: 817 - $(Q)$(MAKE) $(clean)=arch/i386/boot 817 + $(Q)$(MAKE) $(clean)=arch/x86/boot 818 818 819 - When "make clean" is executed, make will descend down in arch/i386/boot, 820 - and clean as usual. The Makefile located in arch/i386/boot/ may use 819 + When "make clean" is executed, make will descend down in arch/x86/boot, 820 + and clean as usual. The Makefile located in arch/x86/boot/ may use 821 821 the subdir- trick to descend further down. 822 822 823 823 Note 1: arch/$(ARCH)/Makefile cannot use "subdir-", because that file is ··· 882 882 LDFLAGS_vmlinux uses the LDFLAGS_$@ support. 883 883 884 884 Example: 885 - #arch/i386/Makefile 885 + #arch/x86/Makefile 886 886 LDFLAGS_vmlinux := -e stext 887 887 888 888 OBJCOPYFLAGS objcopy flags ··· 920 920 Often, the KBUILD_CFLAGS variable depends on the configuration. 921 921 922 922 Example: 923 - #arch/i386/Makefile 923 + #arch/x86/Makefile 924 924 cflags-$(CONFIG_M386) += -march=i386 925 925 KBUILD_CFLAGS += $(cflags-y) 926 926 927 927 Many arch Makefiles dynamically run the target C compiler to 928 928 probe supported options: 929 929 930 - #arch/i386/Makefile 930 + #arch/x86/Makefile 931 931 932 932 ... 933 933 cflags-$(CONFIG_MPENTIUMII) += $(call cc-option,\ ··· 1038 1038 into the arch/$(ARCH)/boot/Makefile. 1039 1039 1040 1040 Example: 1041 - #arch/i386/Makefile 1042 - boot := arch/i386/boot 1041 + #arch/x86/Makefile 1042 + boot := arch/x86/boot 1043 1043 bzImage: vmlinux 1044 1044 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ 1045 1045 ··· 1051 1051 To support this, $(archhelp) must be defined. 1052 1052 1053 1053 Example: 1054 - #arch/i386/Makefile 1054 + #arch/x86/Makefile 1055 1055 define archhelp 1056 1056 echo '* bzImage - Image (arch/$(ARCH)/boot/bzImage)' 1057 1057 endif ··· 1065 1065 from vmlinux. 1066 1066 1067 1067 Example: 1068 - #arch/i386/Makefile 1068 + #arch/x86/Makefile 1069 1069 all: bzImage 1070 1070 1071 1071 When "make" is executed without arguments, bzImage will be built. ··· 1083 1083 2) kbuild knows what files to delete during "make clean" 1084 1084 1085 1085 Example: 1086 - #arch/i386/kernel/Makefile 1086 + #arch/x86/kernel/Makefile 1087 1087 extra-y := head.o init_task.o 1088 1088 1089 1089 In this example, extra-y is used to list object files that ··· 1133 1133 Compress target. Use maximum compression to compress target. 1134 1134 1135 1135 Example: 1136 - #arch/i386/boot/Makefile 1136 + #arch/x86/boot/Makefile 1137 1137 LDFLAGS_bootsect := -Ttext 0x0 -s --oformat binary 1138 1138 LDFLAGS_setup := -Ttext 0x0 -s --oformat binary -e begtext 1139 1139 ··· 1193 1193 1194 1194 When updating the $(obj)/bzImage target, the line 1195 1195 1196 - BUILD arch/i386/boot/bzImage 1196 + BUILD arch/x86/boot/bzImage 1197 1197 1198 1198 will be displayed with "make KBUILD_VERBOSE=0". 1199 1199 ··· 1207 1207 kbuild knows .lds files and includes a rule *lds.S -> *lds. 1208 1208 1209 1209 Example: 1210 - #arch/i386/kernel/Makefile 1210 + #arch/x86/kernel/Makefile 1211 1211 always := vmlinux.lds 1212 1212 1213 1213 #Makefile
+1 -1
Documentation/magic-number.txt
··· 66 66 RISCOM8_MAGIC 0x0907 riscom_port drivers/char/riscom8.h 67 67 SPECIALIX_MAGIC 0x0907 specialix_port drivers/char/specialix_io8.h 68 68 HDLC_MAGIC 0x239e n_hdlc drivers/char/n_hdlc.c 69 - APM_BIOS_MAGIC 0x4101 apm_user arch/i386/kernel/apm.c 69 + APM_BIOS_MAGIC 0x4101 apm_user arch/x86/kernel/apm_32.c 70 70 CYCLADES_MAGIC 0x4359 cyclades_port include/linux/cyclades.h 71 71 DB_MAGIC 0x4442 fc_info drivers/net/iph5526_novram.c 72 72 DL_MAGIC 0x444d fc_info drivers/net/iph5526_novram.c
+2 -2
Documentation/mca.txt
··· 11 11 12 12 The ideal MCA adapter detection is done through the use of the 13 13 Programmable Option Select registers. Generic functions for doing 14 - this have been added in include/linux/mca.h and arch/i386/kernel/mca.c. 14 + this have been added in include/linux/mca.h and arch/x86/kernel/mca_32.c. 15 15 Everything needed to detect adapters and read (and write) configuration 16 16 information is there. A number of MCA-specific drivers already use 17 17 this. The typical probe code looks like the following: ··· 81 81 In general, an interrupt must be acknowledged not only at the ICU (which 82 82 is done automagically by the kernel), but at the device level. In 83 83 particular, IRQ 0 must be reset after a timer interrupt (now done in 84 - arch/i386/kernel/time.c) or the first timer interrupt hangs the system. 84 + arch/x86/kernel/time.c) or the first timer interrupt hangs the system. 85 85 There were also problems with the 1.3.x floppy drivers, but that seems 86 86 to have been fixed. 87 87
+1 -1
Documentation/scheduler/sched-arch.txt
··· 66 66 barrier issued (followed by a test of need_resched with 67 67 interrupts disabled, as explained in 3). 68 68 69 - arch/i386/kernel/process.c has examples of both polling and 69 + arch/x86/kernel/process.c has examples of both polling and 70 70 sleeping idle functions. 71 71 72 72
+1 -1
Documentation/scsi/BusLogic.txt
··· 553 553 make config 554 554 make zImage 555 555 556 - Then install "arch/i386/boot/zImage" as your standard kernel, run lilo if 556 + Then install "arch/x86/boot/zImage" as your standard kernel, run lilo if 557 557 appropriate, and reboot. 558 558 559 559
+1 -1
Documentation/serial/computone.txt
··· 87 87 edit /usr/src/linux/drivers/char/ip2.c 88 88 (Optional - may be specified on kernel command line now) 89 89 d) Run "make zImage" or whatever target you prefer. 90 - e) mv /usr/src/linux/arch/i386/boot/zImage to /boot. 90 + e) mv /usr/src/linux/arch/x86/boot/zImage to /boot. 91 91 f) Add new config for this kernel into /etc/lilo.conf, run "lilo" 92 92 or copy to a floppy disk and boot from that floppy disk. 93 93 g) Reboot using this kernel
+1 -1
Documentation/zh_CN/magic-number.txt
··· 66 66 RISCOM8_MAGIC 0x0907 riscom_port drivers/char/riscom8.h 67 67 SPECIALIX_MAGIC 0x0907 specialix_port drivers/char/specialix_io8.h 68 68 HDLC_MAGIC 0x239e n_hdlc drivers/char/n_hdlc.c 69 - APM_BIOS_MAGIC 0x4101 apm_user arch/i386/kernel/apm.c 69 + APM_BIOS_MAGIC 0x4101 apm_user arch/x86/kernel/apm_32.c 70 70 CYCLADES_MAGIC 0x4359 cyclades_port include/linux/cyclades.h 71 71 DB_MAGIC 0x4442 fc_info drivers/net/iph5526_novram.c 72 72 DL_MAGIC 0x444d fc_info drivers/net/iph5526_novram.c
+3 -3
MAINTAINERS
··· 696 696 697 697 ARM/CIRRUS LOGIC EP93XX ARM ARCHITECTURE 698 698 M: Hartley Sweeten <hsweeten@visionengravers.com> 699 - M: Ryan Mallon <ryan@bluewatersys.com> 699 + M: Ryan Mallon <rmallon@gmail.com> 700 700 L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) 701 701 S: Maintained 702 702 F: arch/arm/mach-ep93xx/ ··· 1588 1588 F: sound/pci/bt87x.c 1589 1589 1590 1590 BT8XXGPIO DRIVER 1591 - M: Michael Buesch <mb@bu3sch.de> 1591 + M: Michael Buesch <m@bues.ch> 1592 1592 W: http://bu3sch.de/btgpio.php 1593 1593 S: Maintained 1594 1594 F: drivers/gpio/bt8xxgpio.c ··· 5910 5910 F: drivers/net/sonic.* 5911 5911 5912 5912 SONICS SILICON BACKPLANE DRIVER (SSB) 5913 - M: Michael Buesch <mb@bu3sch.de> 5913 + M: Michael Buesch <m@bues.ch> 5914 5914 L: netdev@vger.kernel.org 5915 5915 S: Maintained 5916 5916 F: drivers/ssb/
+1 -1
arch/alpha/include/asm/floppy.h
··· 27 27 #define fd_cacheflush(addr,size) /* nothing */ 28 28 #define fd_request_irq() request_irq(FLOPPY_IRQ, floppy_interrupt,\ 29 29 IRQF_DISABLED, "floppy", NULL) 30 - #define fd_free_irq() free_irq(FLOPPY_IRQ, NULL); 30 + #define fd_free_irq() free_irq(FLOPPY_IRQ, NULL) 31 31 32 32 #ifdef CONFIG_PCI 33 33
+1 -1
arch/arm/common/scoop.c
··· 193 193 spin_lock_init(&devptr->scoop_lock); 194 194 195 195 inf = pdev->dev.platform_data; 196 - devptr->base = ioremap(mem->start, mem->end - mem->start + 1); 196 + devptr->base = ioremap(mem->start, resource_size(mem)); 197 197 198 198 if (!devptr->base) { 199 199 ret = -ENOMEM;
+1 -1
arch/arm/mach-at91/at91sam9261_devices.c
··· 525 525 if (ARRAY_SIZE(lcdc_resources) > 2) { 526 526 void __iomem *fb; 527 527 struct resource *fb_res = &lcdc_resources[2]; 528 - size_t fb_len = fb_res->end - fb_res->start + 1; 528 + size_t fb_len = resource_size(fb_res); 529 529 530 530 fb = ioremap(fb_res->start, fb_len); 531 531 if (fb) {
+1 -1
arch/arm/mach-at91/board-snapper9260.c
··· 4 4 * Copyright (C) 2010 Bluewater System Ltd 5 5 * 6 6 * Author: Andre Renaud <andre@bluewatersys.com> 7 - * Author: Ryan Mallon <ryan@bluewatersys.com> 7 + * Author: Ryan Mallon 8 8 * 9 9 * This program is free software; you can redistribute it and/or modify 10 10 * it under the terms of the GNU General Public License as published by
-2
arch/arm/mach-dove/common.c
··· 13 13 #include <linux/init.h> 14 14 #include <linux/platform_device.h> 15 15 #include <linux/pci.h> 16 - #include <linux/serial_8250.h> 17 16 #include <linux/clk.h> 18 17 #include <linux/mbus.h> 19 18 #include <linux/ata_platform.h> 20 - #include <linux/serial_8250.h> 21 19 #include <linux/gpio.h> 22 20 #include <asm/page.h> 23 21 #include <asm/setup.h>
+2 -2
arch/arm/mach-ep93xx/simone.c
··· 2 2 * arch/arm/mach-ep93xx/simone.c 3 3 * Simplemachines Sim.One support. 4 4 * 5 - * Copyright (C) 2010 Ryan Mallon <ryan@bluewatersys.com> 5 + * Copyright (C) 2010 Ryan Mallon 6 6 * 7 7 * Based on the 2.6.24.7 support: 8 8 * Copyright (C) 2009 Simplemachines ··· 65 65 } 66 66 67 67 MACHINE_START(SIM_ONE, "Simplemachines Sim.One Board") 68 - /* Maintainer: Ryan Mallon <ryan@bluewatersys.com> */ 68 + /* Maintainer: Ryan Mallon */ 69 69 .boot_params = EP93XX_SDCE0_PHYS_BASE + 0x100, 70 70 .map_io = ep93xx_map_io, 71 71 .init_irq = ep93xx_init_irq,
+2 -2
arch/arm/mach-ep93xx/snappercl15.c
··· 3 3 * Bluewater Systems Snapper CL15 system module 4 4 * 5 5 * Copyright (C) 2009 Bluewater Systems Ltd 6 - * Author: Ryan Mallon <ryan@bluewatersys.com> 6 + * Author: Ryan Mallon 7 7 * 8 8 * NAND code adapted from driver by: 9 9 * Andre Renaud <andre@bluewatersys.com> ··· 162 162 } 163 163 164 164 MACHINE_START(SNAPPER_CL15, "Bluewater Systems Snapper CL15") 165 - /* Maintainer: Ryan Mallon <ryan@bluewatersys.com> */ 165 + /* Maintainer: Ryan Mallon */ 166 166 .boot_params = EP93XX_SDCE0_PHYS_BASE + 0x100, 167 167 .map_io = ep93xx_map_io, 168 168 .init_irq = ep93xx_init_irq,
+4 -4
arch/arm/mach-mv78xx0/pcie.c
··· 129 129 struct pcie_port *pp = pcie_port + i; 130 130 131 131 mv78xx0_setup_pcie_io_win(win++, pp->res[0].start, 132 - pp->res[0].end - pp->res[0].start + 1, 133 - pp->maj, pp->min); 132 + resource_size(&pp->res[0]), 133 + pp->maj, pp->min); 134 134 135 135 mv78xx0_setup_pcie_mem_win(win++, pp->res[1].start, 136 - pp->res[1].end - pp->res[1].start + 1, 137 - pp->maj, pp->min); 136 + resource_size(&pp->res[1]), 137 + pp->maj, pp->min); 138 138 } 139 139 } 140 140
+1 -1
arch/arm/mach-pxa/include/mach/corgi.h
··· 34 34 #define CORGI_GPIO_LCDCON_CS (19) /* LCD Control Chip Select */ 35 35 #define CORGI_GPIO_MAX1111_CS (20) /* MAX1111 Chip Select */ 36 36 #define CORGI_GPIO_ADC_TEMP_ON (21) /* Select battery voltage or temperature */ 37 - #define CORGI_GPIO_IR_ON (22) /* Enable IR Transciever */ 37 + #define CORGI_GPIO_IR_ON (22) /* Enable IR Transceiver */ 38 38 #define CORGI_GPIO_ADS7846_CS (24) /* ADS7846 Chip Select */ 39 39 #define CORGI_GPIO_SD_PWR (33) /* MMC/SD Power */ 40 40 #define CORGI_GPIO_CHRG_ON (38) /* Enable battery Charging */
+2 -2
arch/arm/mach-pxa/include/mach/pxa27x-udc.h
··· 56 56 #define UDCFNR __REG(0x40600014) /* UDC Frame Number Register */ 57 57 #define UDCOTGICR __REG(0x40600018) /* UDC On-The-Go interrupt control */ 58 58 #define UDCOTGICR_IESF (1 << 24) /* OTG SET_FEATURE command recvd */ 59 - #define UDCOTGICR_IEXR (1 << 17) /* Extra Transciever Interrupt 59 + #define UDCOTGICR_IEXR (1 << 17) /* Extra Transceiver Interrupt 60 60 Rising Edge Interrupt Enable */ 61 - #define UDCOTGICR_IEXF (1 << 16) /* Extra Transciever Interrupt 61 + #define UDCOTGICR_IEXF (1 << 16) /* Extra Transceiver Interrupt 62 62 Falling Edge Interrupt Enable */ 63 63 #define UDCOTGICR_IEVV40R (1 << 9) /* OTG Vbus Valid 4.0V Rising Edge 64 64 Interrupt Enable */
-1
arch/arm/mach-s3c2410/h1940-bluetooth.c
··· 18 18 #include <linux/leds.h> 19 19 #include <linux/gpio.h> 20 20 #include <linux/rfkill.h> 21 - #include <linux/leds.h> 22 21 23 22 #include <mach/regs-gpio.h> 24 23 #include <mach/hardware.h>
+1 -1
arch/arm/mach-shmobile/board-ap4evb.c
··· 443 443 .resource = usb1_host_resources, 444 444 }; 445 445 446 - const static struct fb_videomode ap4evb_lcdc_modes[] = { 446 + static const struct fb_videomode ap4evb_lcdc_modes[] = { 447 447 { 448 448 #ifdef CONFIG_AP4EVB_QHD 449 449 .name = "R63302(QHD)",
+1 -1
arch/arm/mach-u300/core.c
··· 1791 1791 0 == res->start) { 1792 1792 res->start = curr_start; 1793 1793 res->end += curr_start; 1794 - curr_start += (res->end - res->start + 1); 1794 + curr_start += resource_size(res); 1795 1795 1796 1796 printk(KERN_INFO "core.c: Mapping RAM " \ 1797 1797 "%#x-%#x to device %s:%s\n",
+1 -1
arch/arm/mach-ux500/board-mop500-regulators.c
··· 77 77 static struct regulator_consumer_supply ab8500_vintcore_consumers[] = { 78 78 /* SoC core supply, no device */ 79 79 REGULATOR_SUPPLY("v-intcore", NULL), 80 - /* USB Transciever */ 80 + /* USB Transceiver */ 81 81 REGULATOR_SUPPLY("vddulpivio18", "ab8500-usb.0"), 82 82 }; 83 83
+3 -3
arch/arm/plat-s5p/sysmmu.c
··· 232 232 goto err_res; 233 233 } 234 234 235 - mem = request_mem_region(res->start, 236 - ((res->end) - (res->start)) + 1, pdev->name); 235 + mem = request_mem_region(res->start, resource_size(res), 236 + pdev->name); 237 237 if (!mem) { 238 238 dev_err(dev, "Failed to request the memory region of %s.\n", 239 239 sysmmu_ips_name[i]); ··· 241 241 goto err_res; 242 242 } 243 243 244 - sysmmusfrs[i] = ioremap(res->start, res->end - res->start + 1); 244 + sysmmusfrs[i] = ioremap(res->start, resource_size(res)); 245 245 if (!sysmmusfrs[i]) { 246 246 dev_err(dev, "Failed to ioremap() for %s.\n", 247 247 sysmmu_ips_name[i]);
+1 -1
arch/arm/plat-samsung/pm-check.c
··· 72 72 73 73 static u32 *s3c_pm_countram(struct resource *res, u32 *val) 74 74 { 75 - u32 size = (u32)(res->end - res->start)+1; 75 + u32 size = (u32)resource_size(res); 76 76 77 77 size += CHECK_CHUNKSIZE-1; 78 78 size /= CHECK_CHUNKSIZE;
+5 -5
arch/avr32/kernel/setup.c
··· 444 444 find_bootmap_pfn(const struct resource *mem) 445 445 { 446 446 unsigned long bootmap_pages, bootmap_len; 447 - unsigned long node_pages = PFN_UP(mem->end - mem->start + 1); 447 + unsigned long node_pages = PFN_UP(resource_size(mem)); 448 448 unsigned long bootmap_start; 449 449 450 450 bootmap_pages = bootmem_bootmap_pages(node_pages); ··· 541 541 */ 542 542 if (res->start >= PFN_PHYS(first_pfn) 543 543 && res->end < PFN_PHYS(max_pfn)) 544 - reserve_bootmem_node( 545 - NODE_DATA(node), res->start, 546 - res->end - res->start + 1, 547 - BOOTMEM_DEFAULT); 544 + reserve_bootmem_node(NODE_DATA(node), 545 + res->start, 546 + resource_size(res), 547 + BOOTMEM_DEFAULT); 548 548 } 549 549 550 550 node_set_online(node);
+1 -1
arch/avr32/mach-at32ap/extint.c
··· 204 204 } 205 205 206 206 eic->first_irq = EIM_IRQ_BASE + 32 * pdev->id; 207 - eic->regs = ioremap(regs->start, regs->end - regs->start + 1); 207 + eic->regs = ioremap(regs->start, resource_size(regs)); 208 208 if (!eic->regs) { 209 209 dev_dbg(&pdev->dev, "failed to map regs\n"); 210 210 goto err_ioremap;
+1 -1
arch/avr32/mach-at32ap/hsmc.c
··· 245 245 246 246 hsmc->pclk = pclk; 247 247 hsmc->mck = mck; 248 - hsmc->regs = ioremap(regs->start, regs->end - regs->start + 1); 248 + hsmc->regs = ioremap(regs->start, resource_size(regs)); 249 249 if (!hsmc->regs) 250 250 goto out_disable_clocks; 251 251
+1 -1
arch/avr32/mach-at32ap/intc.c
··· 107 107 108 108 clk_enable(pclk); 109 109 110 - intc0.regs = ioremap(regs->start, regs->end - regs->start + 1); 110 + intc0.regs = ioremap(regs->start, resource_size(regs)); 111 111 if (!intc0.regs) { 112 112 printk(KERN_EMERG "intc: failed to map registers (0x%08lx)\n", 113 113 (unsigned long)regs->start);
+1 -1
arch/avr32/mach-at32ap/pio.c
··· 461 461 clk_enable(pio->clk); 462 462 463 463 pio->pdev = pdev; 464 - pio->regs = ioremap(regs->start, regs->end - regs->start + 1); 464 + pio->regs = ioremap(regs->start, resource_size(regs)); 465 465 466 466 /* start with irqs disabled and acked */ 467 467 pio_writel(pio, IDR, ~0UL);
+1 -1
arch/h8300/kernel/setup.c
··· 46 46 #include <asm/regs267x.h> 47 47 #endif 48 48 49 - #define STUBSIZE 0xc000; 49 + #define STUBSIZE 0xc000 50 50 51 51 unsigned long rom_length; 52 52 unsigned long memory_start;
+1 -1
arch/ia64/include/asm/sn/tioce.h
··· 467 467 #define CE_LSI_GB_CFG1_RXL0S_THS_SHFT 0 468 468 #define CE_LSI_GB_CFG1_RXL0S_THS_MASK (0xffULL << 0) 469 469 #define CE_LSI_GB_CFG1_RXL0S_SMP_SHFT 8 470 - #define CE_LSI_GB_CFG1_RXL0S_SMP_MASK (0xfULL << 8); 470 + #define CE_LSI_GB_CFG1_RXL0S_SMP_MASK (0xfULL << 8) 471 471 #define CE_LSI_GB_CFG1_RXL0S_ADJ_SHFT 12 472 472 #define CE_LSI_GB_CFG1_RXL0S_ADJ_MASK (0x7ULL << 12) 473 473 #define CE_LSI_GB_CFG1_RXL0S_FLT_SHFT 15
+1 -1
arch/microblaze/pci/pci-common.c
··· 94 94 95 95 static resource_size_t pcibios_io_size(const struct pci_controller *hose) 96 96 { 97 - return hose->io_resource.end - hose->io_resource.start + 1; 97 + return resource_size(&hose->io_resource); 98 98 } 99 99 100 100 int pcibios_vaddr_is_ioport(void __iomem *address)
+1 -1
arch/mips/bcm47xx/setup.c
··· 1 1 /* 2 2 * Copyright (C) 2004 Florian Schirmer <jolt@tuxbox.org> 3 3 * Copyright (C) 2006 Felix Fietkau <nbd@openwrt.org> 4 - * Copyright (C) 2006 Michael Buesch <mb@bu3sch.de> 4 + * Copyright (C) 2006 Michael Buesch <m@bues.ch> 5 5 * Copyright (C) 2010 Waldemar Brodkorb <wbx@openadk.org> 6 6 * Copyright (C) 2010-2011 Hauke Mehrtens <hauke@hauke-m.de> 7 7 *
+1 -1
arch/mips/include/asm/floppy.h
··· 29 29 #define FLOPPY0_TYPE fd_drive_type(0) 30 30 #define FLOPPY1_TYPE fd_drive_type(1) 31 31 32 - #define FDC1 fd_getfdaddr1(); 32 + #define FDC1 fd_getfdaddr1() 33 33 34 34 #define N_FDC 1 /* do you *really* want a second controller? */ 35 35 #define N_DRIVE 8
+2 -3
arch/mips/include/asm/mach-jz4740/gpio.h
··· 25 25 JZ_GPIO_FUNC3, 26 26 }; 27 27 28 - 29 28 /* 30 29 Usually a driver for a SoC component has to request several gpio pins and 31 30 configure them as funcion pins. 32 31 jz_gpio_bulk_request can be used to ease this process. 33 32 Usually one would do something like: 34 33 35 - const static struct jz_gpio_bulk_request i2c_pins[] = { 34 + static const struct jz_gpio_bulk_request i2c_pins[] = { 36 35 JZ_GPIO_BULK_PIN(I2C_SDA), 37 36 JZ_GPIO_BULK_PIN(I2C_SCK), 38 37 }; ··· 46 47 47 48 jz_gpio_bulk_free(i2c_pins, ARRAY_SIZE(i2c_pins)); 48 49 49 - 50 50 */ 51 + 51 52 struct jz_gpio_bulk_request { 52 53 int gpio; 53 54 const char *name;
-2
arch/mips/lantiq/devices.c
··· 15 15 #include <linux/platform_device.h> 16 16 #include <linux/leds.h> 17 17 #include <linux/etherdevice.h> 18 - #include <linux/reboot.h> 19 18 #include <linux/time.h> 20 19 #include <linux/io.h> 21 20 #include <linux/gpio.h> 22 - #include <linux/leds.h> 23 21 24 22 #include <asm/bootinfo.h> 25 23 #include <asm/irq.h>
-2
arch/mips/lantiq/xway/devices.c
··· 16 16 #include <linux/platform_device.h> 17 17 #include <linux/leds.h> 18 18 #include <linux/etherdevice.h> 19 - #include <linux/reboot.h> 20 19 #include <linux/time.h> 21 20 #include <linux/io.h> 22 21 #include <linux/gpio.h> 23 - #include <linux/leds.h> 24 22 25 23 #include <asm/bootinfo.h> 26 24 #include <asm/irq.h>
+1 -1
arch/mips/pci/pci-rc32434.c
··· 215 215 rc32434_pcibridge_init(); 216 216 217 217 io_map_base = ioremap(rc32434_res_pci_io1.start, 218 - rc32434_res_pci_io1.end - rc32434_res_pci_io1.start + 1); 218 + resource_size(&rcrc32434_res_pci_io1)); 219 219 220 220 if (!io_map_base) 221 221 return -ENOMEM;
+1 -1
arch/mips/pci/pci-vr41xx.c
··· 305 305 struct resource *res = vr41xx_pci_controller.io_resource; 306 306 master = setup->master_io; 307 307 io_map_base = ioremap(master->bus_base_address, 308 - res->end - res->start + 1); 308 + resource_size(res)); 309 309 if (!io_map_base) 310 310 return -EBUSY; 311 311
+4 -6
arch/mips/powertv/asic/asic_devices.c
··· 394 394 395 395 /* Loop through looking for resources that want a particular address */ 396 396 for (i = 0; gp_resources[i].flags != 0; i++) { 397 - int size = gp_resources[i].end - gp_resources[i].start + 1; 397 + int size = resource_size(&gp_resources[i]); 398 398 if ((gp_resources[i].start != 0) && 399 399 ((gp_resources[i].flags & IORESOURCE_MEM) != 0)) { 400 400 reserve_bootmem(dma_to_phys(gp_resources[i].start), 401 401 size, 0); 402 - total += gp_resources[i].end - 403 - gp_resources[i].start + 1; 402 + total += resource_size(&gp_resources[i]); 404 403 pr_info("reserve resource %s at %08x (%u bytes)\n", 405 404 gp_resources[i].name, gp_resources[i].start, 406 - gp_resources[i].end - 407 - gp_resources[i].start + 1); 405 + resource_size(&gp_resources[i])); 408 406 } 409 407 } 410 408 411 409 /* Loop through assigning addresses for those that are left */ 412 410 for (i = 0; gp_resources[i].flags != 0; i++) { 413 - int size = gp_resources[i].end - gp_resources[i].start + 1; 411 + int size = resource_size(&gp_resources[i]); 414 412 if ((gp_resources[i].start == 0) && 415 413 ((gp_resources[i].flags & IORESOURCE_MEM) != 0)) { 416 414 void *mem = alloc_bootmem_pages(size);
+1 -1
arch/parisc/include/asm/dma-mapping.h
··· 210 210 return dev->platform_data; 211 211 } 212 212 213 - #define GET_IOC(dev) (HBA_DATA(parisc_walk_tree(dev))->iommu); 213 + #define GET_IOC(dev) (HBA_DATA(parisc_walk_tree(dev))->iommu) 214 214 215 215 216 216 #ifdef CONFIG_IOMMU_CCIO
+1 -1
arch/parisc/math-emu/decode_exc.c
··· 56 56 /* General definitions */ 57 57 #define DOESTRAP 1 58 58 #define NOTRAP 0 59 - #define SIGNALCODE(signal, code) ((signal) << 24 | (code)); 59 + #define SIGNALCODE(signal, code) ((signal) << 24 | (code)) 60 60 #define copropbit 1<<31-2 /* bit position 2 */ 61 61 #define opclass 9 /* bits 21 & 22 */ 62 62 #define fmt 11 /* bits 19 & 20 */
+2 -2
arch/powerpc/include/asm/elf.h
··· 267 267 struct linux_binprm; 268 268 extern int arch_setup_additional_pages(struct linux_binprm *bprm, 269 269 int uses_interp); 270 - #define VDSO_AUX_ENT(a,b) NEW_AUX_ENT(a,b); 270 + #define VDSO_AUX_ENT(a,b) NEW_AUX_ENT(a,b) 271 271 272 272 /* 1GB for 64bit, 8MB for 32bit */ 273 273 #define STACK_RND_MASK (is_32bit_task() ? \ ··· 298 298 NEW_AUX_ENT(AT_DCACHEBSIZE, dcache_bsize); \ 299 299 NEW_AUX_ENT(AT_ICACHEBSIZE, icache_bsize); \ 300 300 NEW_AUX_ENT(AT_UCACHEBSIZE, ucache_bsize); \ 301 - VDSO_AUX_ENT(AT_SYSINFO_EHDR, current->mm->context.vdso_base) \ 301 + VDSO_AUX_ENT(AT_SYSINFO_EHDR, current->mm->context.vdso_base); \ 302 302 } while (0) 303 303 304 304 /* PowerPC64 relocations defined by the ABIs */
+1 -1
arch/powerpc/include/asm/macio.h
··· 76 76 struct resource *res = &dev->resource[resource_no]; 77 77 if (res->start == 0 || res->end == 0 || res->end < res->start) 78 78 return 0; 79 - return res->end - res->start + 1; 79 + return resource_size(res); 80 80 } 81 81 82 82 extern int macio_enable_devres(struct macio_dev *dev);
+1 -1
arch/powerpc/include/asm/smu.h
··· 547 547 * (currently, afaik, this concerns only the FVT partition 548 548 * (0x12) 549 549 */ 550 - #define SMU_U16_MIX(x) le16_to_cpu(x); 550 + #define SMU_U16_MIX(x) le16_to_cpu(x) 551 551 #define SMU_U32_MIX(x) ((((x) & 0xff00ff00u) >> 8)|(((x) & 0x00ff00ffu) << 8)) 552 552 553 553
+2 -2
arch/powerpc/kernel/machine_kexec.c
··· 126 126 /* We might have got these values via the command line or the 127 127 * device tree, either way sanitise them now. */ 128 128 129 - crash_size = crashk_res.end - crashk_res.start + 1; 129 + crash_size = resource_size(&crashk_res); 130 130 131 131 #ifndef CONFIG_RELOCATABLE 132 132 if (crashk_res.start != KDUMP_KERNELBASE) ··· 222 222 223 223 if (crashk_res.start != 0) { 224 224 prom_add_property(node, &crashk_base_prop); 225 - crashk_size = crashk_res.end - crashk_res.start + 1; 225 + crashk_size = resource_size(&crashk_res); 226 226 prom_add_property(node, &crashk_size_prop); 227 227 } 228 228 }
+1 -1
arch/powerpc/kernel/pci-common.c
··· 107 107 #ifdef CONFIG_PPC64 108 108 return hose->pci_io_size; 109 109 #else 110 - return hose->io_resource.end - hose->io_resource.start + 1; 110 + return resource_size(&hose->io_resource); 111 111 #endif 112 112 } 113 113
+4 -4
arch/powerpc/platforms/52xx/mpc52xx_pci.c
··· 264 264 (unsigned long long)res->flags); 265 265 out_be32(&pci_regs->iw0btar, 266 266 MPC52xx_PCI_IWBTAR_TRANSLATION(res->start, res->start, 267 - res->end - res->start + 1)); 267 + resource_size(res))); 268 268 iwcr0 = MPC52xx_PCI_IWCR_ENABLE | MPC52xx_PCI_IWCR_MEM; 269 269 if (res->flags & IORESOURCE_PREFETCH) 270 270 iwcr0 |= MPC52xx_PCI_IWCR_READ_MULTI; ··· 278 278 res->start, res->end, res->flags); 279 279 out_be32(&pci_regs->iw1btar, 280 280 MPC52xx_PCI_IWBTAR_TRANSLATION(res->start, res->start, 281 - res->end - res->start + 1)); 281 + resource_size(res))); 282 282 iwcr1 = MPC52xx_PCI_IWCR_ENABLE | MPC52xx_PCI_IWCR_MEM; 283 283 if (res->flags & IORESOURCE_PREFETCH) 284 284 iwcr1 |= MPC52xx_PCI_IWCR_READ_MULTI; ··· 300 300 out_be32(&pci_regs->iw2btar, 301 301 MPC52xx_PCI_IWBTAR_TRANSLATION(hose->io_base_phys, 302 302 res->start, 303 - res->end - res->start + 1)); 303 + resource_size(res))); 304 304 iwcr2 = MPC52xx_PCI_IWCR_ENABLE | MPC52xx_PCI_IWCR_IO; 305 305 306 306 /* Set all the IWCR fields at once; they're in the same reg */ ··· 402 402 403 403 hose->ops = &mpc52xx_pci_ops; 404 404 405 - pci_regs = ioremap(rsrc.start, rsrc.end - rsrc.start + 1); 405 + pci_regs = ioremap(rsrc.start, resource_size(&rsrc)); 406 406 if (!pci_regs) 407 407 return -ENOMEM; 408 408
+1 -1
arch/powerpc/platforms/83xx/km83xx.c
··· 101 101 __func__); 102 102 return; 103 103 } 104 - base = ioremap(res.start, res.end - res.start + 1); 104 + base = ioremap(res.start, resource_size(&res)); 105 105 106 106 /* 107 107 * IMMR + 0x14A8[4:5] = 11 (clk delay for UCC 2)
+1 -1
arch/powerpc/platforms/83xx/mpc832x_mds.c
··· 68 68 struct resource res; 69 69 70 70 of_address_to_resource(np, 0, &res); 71 - bcsr_regs = ioremap(res.start, res.end - res.start +1); 71 + bcsr_regs = ioremap(res.start, resource_size(&res)); 72 72 of_node_put(np); 73 73 } 74 74
+1 -1
arch/powerpc/platforms/83xx/mpc834x_mds.c
··· 53 53 struct resource res; 54 54 55 55 of_address_to_resource(np, 0, &res); 56 - bcsr_regs = ioremap(res.start, res.end - res.start + 1); 56 + bcsr_regs = ioremap(res.start, resource_size(&res)); 57 57 of_node_put(np); 58 58 } 59 59 if (!bcsr_regs)
+1 -1
arch/powerpc/platforms/83xx/mpc836x_mds.c
··· 76 76 struct resource res; 77 77 78 78 of_address_to_resource(np, 0, &res); 79 - bcsr_regs = ioremap(res.start, res.end - res.start +1); 79 + bcsr_regs = ioremap(res.start, resource_size(&res)); 80 80 of_node_put(np); 81 81 } 82 82
+1 -1
arch/powerpc/platforms/83xx/usb.c
··· 171 171 of_node_put(np); 172 172 return ret; 173 173 } 174 - usb_regs = ioremap(res.start, res.end - res.start + 1); 174 + usb_regs = ioremap(res.start, resource_size(&res)); 175 175 176 176 /* Using on-chip PHY */ 177 177 if (prop && (!strcmp(prop, "utmi_wide") ||
+1 -1
arch/powerpc/platforms/85xx/sbc8560.c
··· 285 285 286 286 printk(KERN_INFO "sbc8560: Found BRSTCR at i/o 0x%x\n", res.start); 287 287 288 - brstcr = ioremap(res.start, res.end - res.start); 288 + brstcr = ioremap(res.start, resource_size(&res)); 289 289 if(!brstcr) 290 290 printk(KERN_WARNING "sbc8560: ioremap of brstcr failed.\n"); 291 291
+1 -1
arch/powerpc/platforms/85xx/xes_mpc85xx.c
··· 123 123 continue; 124 124 } 125 125 126 - l2_base = ioremap(r[0].start, r[0].end - r[0].start + 1); 126 + l2_base = ioremap(r[0].start, resource_size(&r[0])); 127 127 128 128 xes_mpc85xx_configure_l2(l2_base); 129 129 }
+4 -4
arch/powerpc/platforms/cell/celleb_scc_epci.c
··· 393 393 394 394 if (of_address_to_resource(node, 0, &r)) 395 395 goto error; 396 - hose->cfg_addr = ioremap(r.start, (r.end - r.start + 1)); 396 + hose->cfg_addr = ioremap(r.start, resource_size(&r)); 397 397 if (!hose->cfg_addr) 398 398 goto error; 399 399 pr_debug("EPCI: cfg_addr map 0x%016llx->0x%016lx + 0x%016llx\n", 400 - r.start, (unsigned long)hose->cfg_addr, (r.end - r.start + 1)); 400 + r.start, (unsigned long)hose->cfg_addr, resource_size(&r)); 401 401 402 402 if (of_address_to_resource(node, 2, &r)) 403 403 goto error; 404 - hose->cfg_data = ioremap(r.start, (r.end - r.start + 1)); 404 + hose->cfg_data = ioremap(r.start, resource_size(&r)); 405 405 if (!hose->cfg_data) 406 406 goto error; 407 407 pr_debug("EPCI: cfg_data map 0x%016llx->0x%016lx + 0x%016llx\n", 408 - r.start, (unsigned long)hose->cfg_data, (r.end - r.start + 1)); 408 + r.start, (unsigned long)hose->cfg_data, resource_size(&r)); 409 409 410 410 hose->ops = &celleb_epci_ops; 411 411 celleb_epci_init(hose);
+1 -1
arch/powerpc/platforms/cell/celleb_scc_pciex.c
··· 494 494 pr_err("PCIEXC:Failed to get config resource.\n"); 495 495 return 1; 496 496 } 497 - phb->cfg_addr = ioremap(r.start, r.end - r.start + 1); 497 + phb->cfg_addr = ioremap(r.start, resource_size(&r)); 498 498 if (!phb->cfg_addr) { 499 499 pr_err("PCIEXC:Failed to remap SMMIO region.\n"); 500 500 return 1;
+1 -1
arch/powerpc/platforms/cell/spu_manage.c
··· 222 222 return ret; 223 223 if (phys) 224 224 *phys = resource.start; 225 - len = resource.end - resource.start + 1; 225 + len = resource_size(&resource); 226 226 *virt = ioremap(resource.start, len); 227 227 if (!*virt) 228 228 return -EINVAL;
+1 -1
arch/powerpc/platforms/chrp/pci.c
··· 142 142 return 0; 143 143 } 144 144 of_node_put(np); 145 - Hydra = ioremap(r.start, r.end-r.start); 145 + Hydra = ioremap(r.start, resource_size(&r)); 146 146 printk("Hydra Mac I/O at %llx\n", (unsigned long long)r.start); 147 147 printk("Hydra Feature_Control was %x", 148 148 in_le32(&Hydra->Feature_Control));
+1 -1
arch/powerpc/platforms/pasemi/dma_lib.c
··· 576 576 res.start = 0xfd800000; 577 577 res.end = res.start + 0x1000; 578 578 } 579 - dma_status = __ioremap(res.start, res.end-res.start, 0); 579 + dma_status = __ioremap(res.start, resource_size(&res), 0); 580 580 pci_dev_put(iob_pdev); 581 581 582 582 for (i = 0; i < MAX_TXCH; i++)
+2 -2
arch/powerpc/platforms/powermac/nvram.c
··· 580 580 /* Try to obtain an address */ 581 581 if (of_address_to_resource(dp, 0, &r1) == 0) { 582 582 nvram_naddrs = 1; 583 - s1 = (r1.end - r1.start) + 1; 583 + s1 = resource_size(&r1); 584 584 if (of_address_to_resource(dp, 1, &r2) == 0) { 585 585 nvram_naddrs = 2; 586 - s2 = (r2.end - r2.start) + 1; 586 + s2 = resource_size(&r2); 587 587 } 588 588 } 589 589
+2 -4
arch/powerpc/platforms/powermac/pci.c
··· 839 839 * into cfg_addr 840 840 */ 841 841 hose->cfg_data = ioremap(cfg_res.start, 0x02000000); 842 - hose->cfg_addr = ioremap(self_res.start, 843 - self_res.end - self_res.start + 1); 842 + hose->cfg_addr = ioremap(self_res.start, resource_size(&self_res)); 844 843 845 844 /* 846 845 * /ht node doesn't expose a "ranges" property, we read the register ··· 1323 1324 */ 1324 1325 if (r->start >= 0xf0000000 && r->start < 0xf3000000) 1325 1326 continue; 1326 - if (!region || (r->end - r->start) > 1327 - (region->end - region->start)) 1327 + if (!region || resource_size(r) > resource_size(region)) 1328 1328 region = r; 1329 1329 } 1330 1330 /* Nothing found, bail */
+1 -1
arch/powerpc/platforms/powermac/time.c
··· 274 274 return 0; 275 275 } 276 276 of_node_put(vias); 277 - via = ioremap(rsrc.start, rsrc.end - rsrc.start + 1); 277 + via = ioremap(rsrc.start, resource_size(&rsrc)); 278 278 if (via == NULL) { 279 279 printk(KERN_ERR "Failed to map VIA for timer calibration !\n"); 280 280 return 0;
-1
arch/powerpc/platforms/pseries/smp.c
··· 44 44 #include <asm/mpic.h> 45 45 #include <asm/vdso_datapage.h> 46 46 #include <asm/cputhreads.h> 47 - #include <asm/mpic.h> 48 47 #include <asm/xics.h> 49 48 50 49 #include "plpar_wrappers.h"
+1 -1
arch/powerpc/sysdev/axonram.c
··· 203 203 goto failed; 204 204 } 205 205 206 - bank->size = resource.end - resource.start + 1; 206 + bank->size = resource_size(&resource); 207 207 208 208 if (bank->size == 0) { 209 209 dev_err(&device->dev, "No DDR2 memory found for %s%d\n",
+1 -1
arch/powerpc/sysdev/cpm1.c
··· 148 148 if (ret) 149 149 goto end; 150 150 151 - cpic_reg = ioremap(res.start, res.end - res.start + 1); 151 + cpic_reg = ioremap(res.start, resource_size(&res)); 152 152 if (cpic_reg == NULL) 153 153 goto end; 154 154
+1 -1
arch/powerpc/sysdev/cpm_common.c
··· 115 115 max = r.end; 116 116 117 117 rh_attach_region(&cpm_muram_info, r.start - muram_pbase, 118 - r.end - r.start + 1); 118 + resource_size(&r)); 119 119 } 120 120 121 121 muram_vbase = ioremap(muram_pbase, max - muram_pbase + 1);
+1 -1
arch/powerpc/sysdev/dart_iommu.c
··· 239 239 DARTMAP_RPNMASK); 240 240 241 241 /* Map in DART registers */ 242 - dart = ioremap(r.start, r.end - r.start + 1); 242 + dart = ioremap(r.start, resource_size(&r)); 243 243 if (dart == NULL) 244 244 panic("DART: Cannot map registers!"); 245 245
+1 -1
arch/powerpc/sysdev/fsl_msi.c
··· 349 349 goto error_out; 350 350 } 351 351 352 - msi->msi_regs = ioremap(res.start, res.end - res.start + 1); 352 + msi->msi_regs = ioremap(res.start, resource_size(&res)); 353 353 if (!msi->msi_regs) { 354 354 dev_err(&dev->dev, "ioremap problem failed\n"); 355 355 goto error_out;
+6 -6
arch/powerpc/sysdev/fsl_pci.c
··· 64 64 { 65 65 resource_size_t pci_addr = res->start - offset; 66 66 resource_size_t phys_addr = res->start; 67 - resource_size_t size = res->end - res->start + 1; 67 + resource_size_t size = resource_size(res); 68 68 u32 flags = 0x80044000; /* enable & mem R/W */ 69 69 unsigned int i; 70 70 ··· 108 108 char *name = hose->dn->full_name; 109 109 110 110 pr_debug("PCI memory map start 0x%016llx, size 0x%016llx\n", 111 - (u64)rsrc->start, (u64)rsrc->end - (u64)rsrc->start + 1); 111 + (u64)rsrc->start, (u64)resource_size(rsrc)); 112 112 113 113 if (of_device_is_compatible(hose->dn, "fsl,qoriq-pcie-v2.2")) { 114 114 win_idx = 2; ··· 116 116 end_idx = 3; 117 117 } 118 118 119 - pci = ioremap(rsrc->start, rsrc->end - rsrc->start + 1); 119 + pci = ioremap(rsrc->start, resource_size(rsrc)); 120 120 if (!pci) { 121 121 dev_err(hose->parent, "Unable to map ATMU registers\n"); 122 122 return; ··· 153 153 } else { 154 154 pr_debug("PCI IO resource start 0x%016llx, size 0x%016llx, " 155 155 "phy base 0x%016llx.\n", 156 - (u64)hose->io_resource.start, 157 - (u64)hose->io_resource.end - (u64)hose->io_resource.start + 1, 158 - (u64)hose->io_base_phys); 156 + (u64)hose->io_resource.start, 157 + (u64)resource_size(&hose->io_resource), 158 + (u64)hose->io_base_phys); 159 159 out_be32(&pci->pow[j].potar, (hose->io_resource.start >> 12)); 160 160 out_be32(&pci->pow[j].potear, 0); 161 161 out_be32(&pci->pow[j].powbar, (hose->io_base_phys >> 12));
+1 -1
arch/powerpc/sysdev/fsl_rio.c
··· 1524 1524 port->priv = priv; 1525 1525 port->phys_efptr = 0x100; 1526 1526 1527 - priv->regs_win = ioremap(regs.start, regs.end - regs.start + 1); 1527 + priv->regs_win = ioremap(regs.start, resource_size(&regs)); 1528 1528 rio_regs_win = priv->regs_win; 1529 1529 1530 1530 /* Probe the master port phy type */
+1 -1
arch/powerpc/sysdev/ipic.c
··· 736 736 return NULL; 737 737 } 738 738 739 - ipic->regs = ioremap(res.start, res.end - res.start + 1); 739 + ipic->regs = ioremap(res.start, resource_size(&res)); 740 740 741 741 ipic->irqhost->host_data = ipic; 742 742
+1 -1
arch/powerpc/sysdev/mmio_nvram.c
··· 129 129 goto out; 130 130 } 131 131 nvram_addr = r.start; 132 - mmio_nvram_len = r.end - r.start + 1; 132 + mmio_nvram_len = resource_size(&r); 133 133 if ( (!mmio_nvram_len) || (!nvram_addr) ) { 134 134 printk(KERN_WARNING "nvram: address or length is 0\n"); 135 135 ret = -EIO;
+1 -1
arch/powerpc/sysdev/mpc8xx_pic.c
··· 166 166 if (ret) 167 167 goto out; 168 168 169 - siu_reg = ioremap(res.start, res.end - res.start + 1); 169 + siu_reg = ioremap(res.start, resource_size(&res)); 170 170 if (siu_reg == NULL) { 171 171 ret = -EINVAL; 172 172 goto out;
+2 -2
arch/powerpc/sysdev/mv64x60_udbg.c
··· 125 125 126 126 of_node_put(np); 127 127 128 - mpsc_base = ioremap(r[0].start, r[0].end - r[0].start + 1); 128 + mpsc_base = ioremap(r[0].start, resource_size(&r[0])); 129 129 if (!mpsc_base) 130 130 return; 131 131 132 - mpsc_intr_cause = ioremap(r[1].start, r[1].end - r[1].start + 1); 132 + mpsc_intr_cause = ioremap(r[1].start, resource_size(&r[1])); 133 133 if (!mpsc_intr_cause) { 134 134 iounmap(mpsc_base); 135 135 return;
+8 -8
arch/powerpc/sysdev/ppc4xx_pci.c
··· 265 265 if (ppc4xx_setup_one_pci_PMM(hose, reg, 266 266 res->start, 267 267 res->start - hose->pci_mem_offset, 268 - res->end + 1 - res->start, 268 + resource_size(res), 269 269 res->flags, 270 270 j) == 0) { 271 271 j++; ··· 290 290 void __iomem *reg, 291 291 const struct resource *res) 292 292 { 293 - resource_size_t size = res->end - res->start + 1; 293 + resource_size_t size = resource_size(res); 294 294 u32 sa; 295 295 296 296 /* Calculate window size */ ··· 349 349 bus_range = of_get_property(np, "bus-range", NULL); 350 350 351 351 /* Map registers */ 352 - reg = ioremap(rsrc_reg.start, rsrc_reg.end + 1 - rsrc_reg.start); 352 + reg = ioremap(rsrc_reg.start, resource_size(&rsrc_reg)); 353 353 if (reg == NULL) { 354 354 printk(KERN_ERR "%s: Can't map registers !", np->full_name); 355 355 goto fail; ··· 465 465 if (ppc4xx_setup_one_pcix_POM(hose, reg, 466 466 res->start, 467 467 res->start - hose->pci_mem_offset, 468 - res->end + 1 - res->start, 468 + resource_size(res), 469 469 res->flags, 470 470 j) == 0) { 471 471 j++; ··· 492 492 int big_pim, 493 493 int enable_msi_hole) 494 494 { 495 - resource_size_t size = res->end - res->start + 1; 495 + resource_size_t size = resource_size(res); 496 496 u32 sa; 497 497 498 498 /* RAM is always at 0 */ ··· 555 555 bus_range = of_get_property(np, "bus-range", NULL); 556 556 557 557 /* Map registers */ 558 - reg = ioremap(rsrc_reg.start, rsrc_reg.end + 1 - rsrc_reg.start); 558 + reg = ioremap(rsrc_reg.start, resource_size(&rsrc_reg)); 559 559 if (reg == NULL) { 560 560 printk(KERN_ERR "%s: Can't map registers !", np->full_name); 561 561 goto fail; ··· 1604 1604 if (ppc4xx_setup_one_pciex_POM(port, hose, mbase, 1605 1605 res->start, 1606 1606 res->start - hose->pci_mem_offset, 1607 - res->end + 1 - res->start, 1607 + resource_size(res), 1608 1608 res->flags, 1609 1609 j) == 0) { 1610 1610 j++; ··· 1639 1639 void __iomem *mbase, 1640 1640 struct resource *res) 1641 1641 { 1642 - resource_size_t size = res->end - res->start + 1; 1642 + resource_size_t size = resource_size(res); 1643 1643 u64 sa; 1644 1644 1645 1645 if (port->endpoint) {
+1 -1
arch/powerpc/sysdev/qe_lib/qe_ic.c
··· 347 347 return; 348 348 } 349 349 350 - qe_ic->regs = ioremap(res.start, res.end - res.start + 1); 350 + qe_ic->regs = ioremap(res.start, resource_size(&res)); 351 351 352 352 qe_ic->irqhost->host_data = qe_ic; 353 353 qe_ic->hc_irq = qe_ic_irq_chip;
+1 -1
arch/powerpc/sysdev/qe_lib/qe_io.c
··· 41 41 ret = of_address_to_resource(np, 0, &res); 42 42 if (ret) 43 43 return ret; 44 - par_io = ioremap(res.start, res.end - res.start + 1); 44 + par_io = ioremap(res.start, resource_size(&res)); 45 45 46 46 num_ports = of_get_property(np, "num-ports", NULL); 47 47 if (num_ports)
+1 -1
arch/powerpc/sysdev/xics/icp-native.c
··· 256 256 return -1; 257 257 } 258 258 259 - if (icp_native_map_one_cpu(*indx, r.start, r.end - r.start)) 259 + if (icp_native_map_one_cpu(*indx, r.start, resource_size(&r))) 260 260 return -1; 261 261 262 262 (*indx)++;
-2
arch/s390/oprofile/init.c
··· 13 13 #include <linux/oprofile.h> 14 14 #include <linux/init.h> 15 15 #include <linux/errno.h> 16 - #include <linux/oprofile.h> 17 - #include <linux/errno.h> 18 16 #include <linux/fs.h> 19 17 20 18 #include "../../../drivers/oprofile/oprof.h"
+1 -1
arch/sh/boards/mach-ap325rxa/setup.c
··· 188 188 __raw_writew(0, FPGA_LCDREG); 189 189 } 190 190 191 - const static struct fb_videomode ap325rxa_lcdc_modes[] = { 191 + static const struct fb_videomode ap325rxa_lcdc_modes[] = { 192 192 { 193 193 .name = "LB070WV1", 194 194 .xres = 800,
+2 -2
arch/sh/boards/mach-ecovec24/setup.c
··· 280 280 }; 281 281 282 282 /* LCDC */ 283 - const static struct fb_videomode ecovec_lcd_modes[] = { 283 + static const struct fb_videomode ecovec_lcd_modes[] = { 284 284 { 285 285 .name = "Panel", 286 286 .xres = 800, ··· 295 295 }, 296 296 }; 297 297 298 - const static struct fb_videomode ecovec_dvi_modes[] = { 298 + static const struct fb_videomode ecovec_dvi_modes[] = { 299 299 { 300 300 .name = "DVI", 301 301 .xres = 1280,
+1 -1
arch/sh/boards/mach-kfr2r09/setup.c
··· 127 127 }, 128 128 }; 129 129 130 - const static struct fb_videomode kfr2r09_lcdc_modes[] = { 130 + static const struct fb_videomode kfr2r09_lcdc_modes[] = { 131 131 { 132 132 .name = "TX07D34VM0AAA", 133 133 .xres = 240,
+1 -1
arch/sh/boards/mach-migor/setup.c
··· 214 214 } 215 215 }; 216 216 217 - const static struct fb_videomode migor_lcd_modes[] = { 217 + static const struct fb_videomode migor_lcd_modes[] = { 218 218 { 219 219 #if defined(CONFIG_SH_MIGOR_RTA_WVGA) 220 220 .name = "LB070WV1",
+2 -2
arch/sh/boards/mach-se/7724/setup.c
··· 145 145 }; 146 146 147 147 /* LCDC */ 148 - const static struct fb_videomode lcdc_720p_modes[] = { 148 + static const struct fb_videomode lcdc_720p_modes[] = { 149 149 { 150 150 .name = "LB070WV1", 151 151 .sync = 0, /* hsync and vsync are active low */ ··· 160 160 }, 161 161 }; 162 162 163 - const static struct fb_videomode lcdc_vga_modes[] = { 163 + static const struct fb_videomode lcdc_vga_modes[] = { 164 164 { 165 165 .name = "LB070WV1", 166 166 .sync = 0, /* hsync and vsync are active low */
+4 -4
arch/sh/kernel/io_trapped.c
··· 58 58 59 59 for (k = 0; k < tiop->num_resources; k++) { 60 60 res = tiop->resource + k; 61 - len += roundup((res->end - res->start) + 1, PAGE_SIZE); 61 + len += roundup(resource_size(res), PAGE_SIZE); 62 62 flags |= res->flags; 63 63 } 64 64 ··· 85 85 (unsigned long)(tiop->virt_base + len), 86 86 res->flags & IORESOURCE_IO ? "io" : "mmio", 87 87 (unsigned long)res->start); 88 - len += roundup((res->end - res->start) + 1, PAGE_SIZE); 88 + len += roundup(resource_size(res), PAGE_SIZE); 89 89 } 90 90 91 91 tiop->magic = IO_TRAPPED_MAGIC; ··· 128 128 return tiop->virt_base + voffs; 129 129 } 130 130 131 - len = (res->end - res->start) + 1; 131 + len = resource_size(res); 132 132 voffs += roundup(len, PAGE_SIZE); 133 133 } 134 134 } ··· 173 173 174 174 for (k = 0; k < tiop->num_resources; k++) { 175 175 res = tiop->resource + k; 176 - len = roundup((res->end - res->start) + 1, PAGE_SIZE); 176 + len = roundup(resource_size(res), PAGE_SIZE); 177 177 if (address < (vaddr + len)) 178 178 return res->start + (address - vaddr); 179 179 vaddr += len;
+1 -1
arch/sh/kernel/machine_kexec.c
··· 170 170 if (crashk_res.end == crashk_res.start) 171 171 goto disable; 172 172 173 - crash_size = PAGE_ALIGN(crashk_res.end - crashk_res.start + 1); 173 + crash_size = PAGE_ALIGN(resource_size(&crashk_res)); 174 174 if (!crashk_res.start) { 175 175 unsigned long max = memblock_end_of_DRAM() - memory_limit; 176 176 crashk_res.start = __memblock_alloc_base(crash_size, PAGE_SIZE, max);
+1 -1
arch/sparc/include/asm/elf_64.h
··· 186 186 return cap; 187 187 } 188 188 189 - #define ELF_HWCAP sparc64_elf_hwcap(); 189 + #define ELF_HWCAP sparc64_elf_hwcap() 190 190 191 191 /* This yields a string that ld.so will use to load implementation 192 192 specific libraries for optimization. This is more specific in
+6 -6
arch/sparc/kernel/ioport.c
··· 228 228 } 229 229 230 230 pa &= PAGE_MASK; 231 - sparc_mapiorange(bus, pa, res->start, res->end - res->start + 1); 231 + sparc_mapiorange(bus, pa, res->start, resource_size(res)); 232 232 233 233 return (void __iomem *)(unsigned long)(res->start + offset); 234 234 } ··· 240 240 { 241 241 unsigned long plen; 242 242 243 - plen = res->end - res->start + 1; 243 + plen = resource_size(res); 244 244 BUG_ON((plen & (PAGE_SIZE-1)) != 0); 245 245 sparc_unmapiorange(res->start, plen); 246 246 release_resource(res); ··· 331 331 } 332 332 333 333 n = PAGE_ALIGN(n); 334 - if ((res->end-res->start)+1 != n) { 334 + if (resource_size(res) != n) { 335 335 printk("sbus_free_consistent: region 0x%lx asked 0x%zx\n", 336 - (long)((res->end-res->start)+1), n); 336 + (long)resource_size(res), n); 337 337 return; 338 338 } 339 339 ··· 504 504 } 505 505 506 506 n = PAGE_ALIGN(n); 507 - if ((res->end-res->start)+1 != n) { 507 + if (resource_size(res) != n) { 508 508 printk("pci_free_consistent: region 0x%lx asked 0x%lx\n", 509 - (long)((res->end-res->start)+1), (long)n); 509 + (long)resource_size(res), (long)n); 510 510 return; 511 511 } 512 512
+2 -4
arch/sparc/kernel/pci.c
··· 820 820 unsigned long space_size, user_offset, user_size; 821 821 822 822 if (mmap_state == pci_mmap_io) { 823 - space_size = (pbm->io_space.end - 824 - pbm->io_space.start) + 1; 823 + space_size = resource_size(&pbm->io_space); 825 824 } else { 826 - space_size = (pbm->mem_space.end - 827 - pbm->mem_space.start) + 1; 825 + space_size = resource_size(&pbm->mem_space); 828 826 } 829 827 830 828 /* Make sure the request is in range. */
+1 -2
arch/tile/kernel/setup.c
··· 553 553 554 554 #ifdef CONFIG_KEXEC 555 555 if (crashk_res.start != crashk_res.end) 556 - reserve_bootmem(crashk_res.start, 557 - crashk_res.end - crashk_res.start + 1, 0); 556 + reserve_bootmem(crashk_res.start, resource_size(&crashk_res), 0); 558 557 #endif 559 558 } 560 559
+1 -1
arch/um/sys-i386/signal.c
··· 58 58 unsigned long ret = 0xffff0000; 59 59 int i; 60 60 61 - #define FPREG_ADDR(f, n) ((char *)&(f)->st_space + (n) * 16); 61 + #define FPREG_ADDR(f, n) ((char *)&(f)->st_space + (n) * 16) 62 62 63 63 for (i = 0; i < 8; i++) { 64 64 if (twd & 0x1) {
+2 -2
arch/x86/Kconfig
··· 1737 1737 machines with more than one CPU. 1738 1738 1739 1739 In order to use APM, you will need supporting software. For location 1740 - and more information, read <file:Documentation/power/pm.txt> and the 1741 - Battery Powered Linux mini-HOWTO, available from 1740 + and more information, read <file:Documentation/power/apm-acpi.txt> 1741 + and the Battery Powered Linux mini-HOWTO, available from 1742 1742 <http://www.tldp.org/docs.html#howto>. 1743 1743 1744 1744 This driver does not spin down disk drives (see the hdparm(8)
+1 -1
arch/x86/kernel/i387.c
··· 321 321 return tmp; 322 322 } 323 323 324 - #define FPREG_ADDR(f, n) ((void *)&(f)->st_space + (n) * 16); 324 + #define FPREG_ADDR(f, n) ((void *)&(f)->st_space + (n) * 16) 325 325 #define FP_EXP_TAG_VALID 0 326 326 #define FP_EXP_TAG_ZERO 1 327 327 #define FP_EXP_TAG_SPECIAL 2
+1 -1
arch/x86/kernel/pci-calgary_64.c
··· 1553 1553 continue; 1554 1554 1555 1555 /* cover the whole region */ 1556 - npages = (r->end - r->start) >> PAGE_SHIFT; 1556 + npages = resource_size(r) >> PAGE_SHIFT; 1557 1557 npages++; 1558 1558 1559 1559 iommu_range_reserve(tbl, r->start, npages);
+1 -1
arch/x86/kernel/probe_roms.c
··· 234 234 /* check for extension rom (ignore length byte!) */ 235 235 rom = isa_bus_to_virt(extension_rom_resource.start); 236 236 if (romsignature(rom)) { 237 - length = extension_rom_resource.end - extension_rom_resource.start + 1; 237 + length = resource_size(&extension_rom_resource); 238 238 if (romchecksum(rom, length)) { 239 239 request_resource(&iomem_resource, &extension_rom_resource); 240 240 upper = extension_rom_resource.start;
-1
arch/x86/kvm/mmu.c
··· 22 22 #include "mmu.h" 23 23 #include "x86.h" 24 24 #include "kvm_cache_regs.h" 25 - #include "x86.h" 26 25 27 26 #include <linux/kvm_host.h> 28 27 #include <linux/types.h>
+1 -2
arch/xtensa/include/asm/uaccess.h
··· 17 17 #define _XTENSA_UACCESS_H 18 18 19 19 #include <linux/errno.h> 20 + #include <asm/types.h> 20 21 21 22 #define VERIFY_READ 0 22 23 #define VERIFY_WRITE 1 ··· 27 26 #include <asm/current.h> 28 27 #include <asm/asm-offsets.h> 29 28 #include <asm/processor.h> 30 - #include <asm/types.h> 31 29 32 30 /* 33 31 * These assembly macros mirror the C macros that follow below. They ··· 157 157 #else /* __ASSEMBLY__ not defined */ 158 158 159 159 #include <linux/sched.h> 160 - #include <asm/types.h> 161 160 162 161 /* 163 162 * The fs value determines whether argument validity checking should
+1 -1
arch/xtensa/variants/s6000/include/variant/dmac.h
··· 357 357 static inline void s6dmac_dp_setup_group(u32 dmac, int port, 358 358 int nrch, int frrep) 359 359 { 360 - const static u8 mask[4] = {0, 3, 1, 2}; 360 + static const u8 mask[4] = {0, 3, 1, 2}; 361 361 BUG_ON(dmac != S6_REG_DPDMA); 362 362 if ((port < 0) || (port > 3) || (nrch < 1) || (nrch > 4)) 363 363 return;
+1 -1
crypto/Kconfig
··· 354 354 RIPEMD-128 (ISO/IEC 10118-3:2004). 355 355 356 356 RIPEMD-128 is a 128-bit cryptographic hash function. It should only 357 - to be used as a secure replacement for RIPEMD. For other use cases 357 + be used as a secure replacement for RIPEMD. For other use cases, 358 358 RIPEMD-160 should be used. 359 359 360 360 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
+1 -1
drivers/acpi/ac.c
··· 89 89 unsigned long long state; 90 90 }; 91 91 92 - #define to_acpi_ac(x) container_of(x, struct acpi_ac, charger); 92 + #define to_acpi_ac(x) container_of(x, struct acpi_ac, charger) 93 93 94 94 #ifdef CONFIG_ACPI_PROCFS_POWER 95 95 static const struct file_operations acpi_ac_fops = {
+1 -1
drivers/acpi/battery.c
··· 132 132 unsigned long flags; 133 133 }; 134 134 135 - #define to_acpi_battery(x) container_of(x, struct acpi_battery, bat); 135 + #define to_acpi_battery(x) container_of(x, struct acpi_battery, bat) 136 136 137 137 inline int acpi_battery_present(struct acpi_battery *battery) 138 138 {
+1 -1
drivers/acpi/sbs.c
··· 112 112 u8 have_sysfs_alarm:1; 113 113 }; 114 114 115 - #define to_acpi_battery(x) container_of(x, struct acpi_battery, bat); 115 + #define to_acpi_battery(x) container_of(x, struct acpi_battery, bat) 116 116 117 117 struct acpi_sbs { 118 118 struct power_supply charger;
+1 -1
drivers/bcma/driver_chipcommon.c
··· 3 3 * ChipCommon core driver 4 4 * 5 5 * Copyright 2005, Broadcom Corporation 6 - * Copyright 2006, 2007, Michael Buesch <mb@bu3sch.de> 6 + * Copyright 2006, 2007, Michael Buesch <m@bues.ch> 7 7 * 8 8 * Licensed under the GNU/GPL. See COPYING for details. 9 9 */
+1 -1
drivers/bcma/driver_chipcommon_pmu.c
··· 2 2 * Broadcom specific AMBA 3 3 * ChipCommon Power Management Unit driver 4 4 * 5 - * Copyright 2009, Michael Buesch <mb@bu3sch.de> 5 + * Copyright 2009, Michael Buesch <m@bues.ch> 6 6 * Copyright 2007, Broadcom Corporation 7 7 * 8 8 * Licensed under the GNU/GPL. See COPYING for details.
+1 -1
drivers/bcma/driver_pci.c
··· 3 3 * PCI Core 4 4 * 5 5 * Copyright 2005, Broadcom Corporation 6 - * Copyright 2006, 2007, Michael Buesch <mb@bu3sch.de> 6 + * Copyright 2006, 2007, Michael Buesch <m@bues.ch> 7 7 * 8 8 * Licensed under the GNU/GPL. See COPYING for details. 9 9 */
+1 -1
drivers/char/bsr.c
··· 212 212 213 213 cur->bsr_minor = i + total_bsr_devs; 214 214 cur->bsr_addr = res.start; 215 - cur->bsr_len = res.end - res.start + 1; 215 + cur->bsr_len = resource_size(&res); 216 216 cur->bsr_bytes = bsr_bytes[i]; 217 217 cur->bsr_stride = bsr_stride[i]; 218 218 cur->bsr_dev = MKDEV(bsr_major, i + total_bsr_devs);
+1 -1
drivers/char/hw_random/core.c
··· 19 19 Copyright 2000,2001 Philipp Rumpf <prumpf@mandrakesoft.com> 20 20 21 21 Added generic RNG API 22 - Copyright 2006 Michael Buesch <mbuesch@freenet.de> 22 + Copyright 2006 Michael Buesch <m@bues.ch> 23 23 Copyright 2005 (c) MontaVista Software, Inc. 24 24 25 25 Please read Documentation/hw_random.txt for details on use.
+1 -1
drivers/char/xilinx_hwicap/xilinx_hwicap.c
··· 621 621 622 622 drvdata->mem_start = regs_res->start; 623 623 drvdata->mem_end = regs_res->end; 624 - drvdata->mem_size = regs_res->end - regs_res->start + 1; 624 + drvdata->mem_size = resource_size(regs_res); 625 625 626 626 if (!request_mem_region(drvdata->mem_start, 627 627 drvdata->mem_size, DRIVER_NAME)) {
+2 -3
drivers/dma/mv_xor.c
··· 1304 1304 if (!res) 1305 1305 return -ENODEV; 1306 1306 1307 - msp->xor_base = devm_ioremap(&pdev->dev, res->start, 1308 - res->end - res->start + 1); 1307 + msp->xor_base = devm_ioremap(&pdev->dev, res->start, resource_size(res)); 1309 1308 if (!msp->xor_base) 1310 1309 return -EBUSY; 1311 1310 ··· 1313 1314 return -ENODEV; 1314 1315 1315 1316 msp->xor_high_base = devm_ioremap(&pdev->dev, res->start, 1316 - res->end - res->start + 1); 1317 + resource_size(res)); 1317 1318 if (!msp->xor_high_base) 1318 1319 return -EBUSY; 1319 1320
+1 -1
drivers/edac/cell_edac.c
··· 140 140 if (of_node_to_nid(np) != priv->node) 141 141 continue; 142 142 csrow->first_page = r.start >> PAGE_SHIFT; 143 - csrow->nr_pages = (r.end - r.start + 1) >> PAGE_SHIFT; 143 + csrow->nr_pages = resource_size(&r) >> PAGE_SHIFT; 144 144 csrow->last_page = csrow->first_page + csrow->nr_pages - 1; 145 145 csrow->mtype = MEM_XDR; 146 146 csrow->edac_mode = EDAC_SECDED;
+6 -6
drivers/edac/mpc85xx_edac.c
··· 538 538 /* we only need the error registers */ 539 539 r.start += 0xe00; 540 540 541 - if (!devm_request_mem_region(&op->dev, r.start, 542 - r.end - r.start + 1, pdata->name)) { 541 + if (!devm_request_mem_region(&op->dev, r.start, resource_size(&r), 542 + pdata->name)) { 543 543 printk(KERN_ERR "%s: Error while requesting mem region\n", 544 544 __func__); 545 545 res = -EBUSY; 546 546 goto err; 547 547 } 548 548 549 - pdata->l2_vbase = devm_ioremap(&op->dev, r.start, r.end - r.start + 1); 549 + pdata->l2_vbase = devm_ioremap(&op->dev, r.start, resource_size(&r)); 550 550 if (!pdata->l2_vbase) { 551 551 printk(KERN_ERR "%s: Unable to setup L2 err regs\n", __func__); 552 552 res = -ENOMEM; ··· 987 987 goto err; 988 988 } 989 989 990 - if (!devm_request_mem_region(&op->dev, r.start, 991 - r.end - r.start + 1, pdata->name)) { 990 + if (!devm_request_mem_region(&op->dev, r.start, resource_size(&r), 991 + pdata->name)) { 992 992 printk(KERN_ERR "%s: Error while requesting mem region\n", 993 993 __func__); 994 994 res = -EBUSY; 995 995 goto err; 996 996 } 997 997 998 - pdata->mc_vbase = devm_ioremap(&op->dev, r.start, r.end - r.start + 1); 998 + pdata->mc_vbase = devm_ioremap(&op->dev, r.start, resource_size(&r)); 999 999 if (!pdata->mc_vbase) { 1000 1000 printk(KERN_ERR "%s: Unable to setup MC err regs\n", __func__); 1001 1001 res = -ENOMEM;
-1
drivers/gpio/gpio-ab8500.c
··· 15 15 #include <linux/module.h> 16 16 #include <linux/err.h> 17 17 #include <linux/platform_device.h> 18 - #include <linux/slab.h> 19 18 #include <linux/gpio.h> 20 19 #include <linux/irq.h> 21 20 #include <linux/interrupt.h>
+1 -1
drivers/gpio/gpio-bt8xx.c
··· 2 2 3 3 bt8xx GPIO abuser 4 4 5 - Copyright (C) 2008 Michael Buesch <mb@bu3sch.de> 5 + Copyright (C) 2008 Michael Buesch <m@bues.ch> 6 6 7 7 Please do _only_ contact the people listed _above_ with issues related to this driver. 8 8 All the other people listed below are not related to this driver. Their names
+1 -1
drivers/gpio/gpio-ep93xx.c
··· 1 1 /* 2 2 * Generic EP93xx GPIO handling 3 3 * 4 - * Copyright (c) 2008 Ryan Mallon <ryan@bluewatersys.com> 4 + * Copyright (c) 2008 Ryan Mallon 5 5 * Copyright (c) 2011 H Hartley Sweeten <hsweeten@visionengravers.com> 6 6 * 7 7 * Based on code originally from:
+4 -4
drivers/gpio/gpio-u300.c
··· 578 578 if (!memres) 579 579 goto err_no_resource; 580 580 581 - if (request_mem_region(memres->start, memres->end - memres->start, "GPIO Controller") 582 - == NULL) { 581 + if (!request_mem_region(memres->start, resource_size(memres), 582 + "GPIO Controller")) { 583 583 err = -ENODEV; 584 584 goto err_no_ioregion; 585 585 } ··· 637 637 free_irq(gpio_ports[i].irq, &gpio_ports[i]); 638 638 iounmap(virtbase); 639 639 err_no_ioremap: 640 - release_mem_region(memres->start, memres->end - memres->start); 640 + release_mem_region(memres->start, resource_size(memres)); 641 641 err_no_ioregion: 642 642 err_no_resource: 643 643 clk_disable(clk); ··· 657 657 for (i = 0 ; i < U300_GPIO_NUM_PORTS; i++) 658 658 free_irq(gpio_ports[i].irq, &gpio_ports[i]); 659 659 iounmap(virtbase); 660 - release_mem_region(memres->start, memres->end - memres->start); 660 + release_mem_region(memres->start, resource_size(memres)); 661 661 clk_disable(clk); 662 662 clk_put(clk); 663 663 return 0;
-1
drivers/gpu/drm/nouveau/nv50_graph.c
··· 31 31 #include "nouveau_grctx.h" 32 32 #include "nouveau_dma.h" 33 33 #include "nouveau_vm.h" 34 - #include "nouveau_ramht.h" 35 34 #include "nv50_evo.h" 36 35 37 36 struct nv50_graph_engine {
+2 -2
drivers/gpu/drm/sis/sis_drv.h
··· 48 48 49 49 50 50 #define SIS_BASE (dev_priv->mmio) 51 - #define SIS_READ(reg) DRM_READ32(SIS_BASE, reg); 52 - #define SIS_WRITE(reg, val) DRM_WRITE32(SIS_BASE, reg, val); 51 + #define SIS_READ(reg) DRM_READ32(SIS_BASE, reg) 52 + #define SIS_WRITE(reg, val) DRM_WRITE32(SIS_BASE, reg, val) 53 53 54 54 typedef struct drm_sis_private { 55 55 drm_local_map_t *mmio;
+1 -1
drivers/hwmon/gl520sm.c
··· 273 273 274 274 #define DIV_FROM_REG(val) (1 << (val)) 275 275 #define FAN_FROM_REG(val,div) ((val)==0 ? 0 : (480000/((val) << (div)))) 276 - #define FAN_TO_REG(val,div) ((val)<=0?0:SENSORS_LIMIT((480000 + ((val) << ((div)-1))) / ((val) << (div)), 1, 255)); 276 + #define FAN_TO_REG(val,div) ((val)<=0?0:SENSORS_LIMIT((480000 + ((val) << ((div)-1))) / ((val) << (div)), 1, 255)) 277 277 278 278 static ssize_t get_fan_input(struct device *dev, struct device_attribute *attr, 279 279 char *buf)
+1 -1
drivers/i2c/Kconfig
··· 7 7 depends on HAS_IOMEM 8 8 select RT_MUTEXES 9 9 ---help--- 10 - I2C (pronounce: I-square-C) is a slow serial bus protocol used in 10 + I2C (pronounce: I-squared-C) is a slow serial bus protocol used in 11 11 many micro controller applications and developed by Philips. SMBus, 12 12 or System Management Bus is a subset of the I2C protocol. More 13 13 information is contained in the directory <file:Documentation/i2c/>,
+1 -1
drivers/i2c/busses/i2c-highlander.c
··· 227 227 228 228 /* 229 229 * The R0P7780LC0011RL FPGA needs a significant delay between 230 - * data read cycles, otherwise the transciever gets confused and 230 + * data read cycles, otherwise the transceiver gets confused and 231 231 * garbage is returned when the read is subsequently aborted. 232 232 * 233 233 * It is not sufficient to wait for BBSY.
+2 -2
drivers/i2c/busses/i2c-omap.c
··· 204 204 u16 errata; 205 205 }; 206 206 207 - const static u8 reg_map[] = { 207 + static const u8 reg_map[] = { 208 208 [OMAP_I2C_REV_REG] = 0x00, 209 209 [OMAP_I2C_IE_REG] = 0x01, 210 210 [OMAP_I2C_STAT_REG] = 0x02, ··· 225 225 [OMAP_I2C_BUFSTAT_REG] = 0x10, 226 226 }; 227 227 228 - const static u8 omap4_reg_map[] = { 228 + static const u8 omap4_reg_map[] = { 229 229 [OMAP_I2C_REV_REG] = 0x04, 230 230 [OMAP_I2C_IE_REG] = 0x2c, 231 231 [OMAP_I2C_STAT_REG] = 0x28,
+1 -1
drivers/ide/palm_bk3710.c
··· 342 342 return -ENODEV; 343 343 } 344 344 345 - mem_size = mem->end - mem->start + 1; 345 + mem_size = resource_size(mem); 346 346 if (request_mem_region(mem->start, mem_size, "palm_bk3710") == NULL) { 347 347 printk(KERN_ERR "failed to request memory region\n"); 348 348 return -EBUSY;
+2 -2
drivers/ide/tx4939ide.c
··· 551 551 return -ENODEV; 552 552 553 553 if (!devm_request_mem_region(&pdev->dev, res->start, 554 - res->end - res->start + 1, "tx4938ide")) 554 + resource_size(res), "tx4938ide")) 555 555 return -EBUSY; 556 556 mapbase = (unsigned long)devm_ioremap(&pdev->dev, res->start, 557 - res->end - res->start + 1); 557 + resource_size(res)); 558 558 if (!mapbase) 559 559 return -EBUSY; 560 560 memset(&hw, 0, sizeof(hw));
+1 -1
drivers/input/serio/libps2.c
··· 210 210 /* 211 211 * Some devices (Synaptics) peform the reset before 212 212 * ACKing the reset command, and so it can take a long 213 - * time before the ACK arrrives. 213 + * time before the ACK arrives. 214 214 */ 215 215 if (ps2_sendbyte(ps2dev, command & 0xff, 216 216 command == PS2_CMD_RESET_BAT ? 1000 : 200))
+2 -4
drivers/input/serio/sa1111ps2.c
··· 300 300 301 301 out: 302 302 sa1111_disable_device(ps2if->dev); 303 - release_mem_region(dev->res.start, 304 - dev->res.end - dev->res.start + 1); 303 + release_mem_region(dev->res.start, resource_size(&dev->res)); 305 304 free: 306 305 sa1111_set_drvdata(dev, NULL); 307 306 kfree(ps2if); ··· 316 317 struct ps2if *ps2if = sa1111_get_drvdata(dev); 317 318 318 319 serio_unregister_port(ps2if->io); 319 - release_mem_region(dev->res.start, 320 - dev->res.end - dev->res.start + 1); 320 + release_mem_region(dev->res.start, resource_size(&dev->res)); 321 321 sa1111_set_drvdata(dev, NULL); 322 322 323 323 kfree(ps2if);
+1 -1
drivers/isdn/i4l/isdn_bsdcomp.c
··· 155 155 #define LAST 255 156 156 157 157 #define MAXCODE(b) ((1 << (b)) - 1) 158 - #define BADCODEM1 MAXCODE(MAX_BSD_BITS); 158 + #define BADCODEM1 MAXCODE(MAX_BSD_BITS) 159 159 160 160 #define BSD_HASH(prefix,suffix,hshift) ((((unsigned long)(suffix))<<(hshift)) \ 161 161 ^ (unsigned long)(prefix))
-1
drivers/media/rc/ite-cir.c
··· 42 42 #include <linux/bitops.h> 43 43 #include <media/rc-core.h> 44 44 #include <linux/pci_ids.h> 45 - #include <linux/delay.h> 46 45 47 46 #include "ite-cir.h" 48 47
+1 -1
drivers/media/video/davinci/vpif.c
··· 422 422 if (!res) 423 423 return -ENOENT; 424 424 425 - res_len = res->end - res->start + 1; 425 + res_len = resource_size(res); 426 426 427 427 res = request_mem_region(res->start, res_len, res->name); 428 428 if (!res)
-1
drivers/media/video/m5mols/m5mols_capture.c
··· 22 22 #include <linux/gpio.h> 23 23 #include <linux/regulator/consumer.h> 24 24 #include <linux/videodev2.h> 25 - #include <linux/version.h> 26 25 #include <media/v4l2-ctrls.h> 27 26 #include <media/v4l2-device.h> 28 27 #include <media/v4l2-subdev.h>
+1 -1
drivers/media/video/omap/omap_vout.c
··· 129 129 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 130 130 131 131 /* list of image formats supported by OMAP2 video pipelines */ 132 - const static struct v4l2_fmtdesc omap_formats[] = { 132 + static const struct v4l2_fmtdesc omap_formats[] = { 133 133 { 134 134 /* Note: V4L2 defines RGB565 as: 135 135 *
+2 -3
drivers/media/video/omap24xxcam.c
··· 1768 1768 dev_err(cam->dev, "no mem resource?\n"); 1769 1769 goto err; 1770 1770 } 1771 - if (!request_mem_region(mem->start, (mem->end - mem->start) + 1, 1772 - pdev->name)) { 1771 + if (!request_mem_region(mem->start, resource_size(mem), pdev->name)) { 1773 1772 dev_err(cam->dev, 1774 1773 "cannot reserve camera register I/O region\n"); 1775 1774 goto err; 1776 1775 } 1777 1776 cam->mmio_base_phys = mem->start; 1778 - cam->mmio_size = (mem->end - mem->start) + 1; 1777 + cam->mmio_size = resource_size(mem); 1779 1778 1780 1779 /* map the region */ 1781 1780 cam->mmio_base = (unsigned long)
-1
drivers/media/video/videobuf2-memops.c
··· 18 18 #include <linux/mm.h> 19 19 #include <linux/sched.h> 20 20 #include <linux/file.h> 21 - #include <linux/slab.h> 22 21 23 22 #include <media/videobuf2-core.h> 24 23 #include <media/videobuf2-memops.h>
+4 -4
drivers/message/i2o/iop.c
··· 681 681 if (root && allocate_resource(root, res, sb->desired_mem_size, sb->desired_mem_size, sb->desired_mem_size, 1 << 20, /* Unspecified, so use 1Mb and play safe */ 682 682 NULL, NULL) >= 0) { 683 683 c->mem_alloc = 1; 684 - sb->current_mem_size = 1 + res->end - res->start; 684 + sb->current_mem_size = resource_size(res); 685 685 sb->current_mem_base = res->start; 686 686 osm_info("%s: allocated %llu bytes of PCI memory at " 687 687 "0x%016llX.\n", c->name, 688 - (unsigned long long)(1 + res->end - res->start), 688 + (unsigned long long)resource_size(res), 689 689 (unsigned long long)res->start); 690 690 } 691 691 } ··· 703 703 if (root && allocate_resource(root, res, sb->desired_io_size, sb->desired_io_size, sb->desired_io_size, 1 << 20, /* Unspecified, so use 1Mb and play safe */ 704 704 NULL, NULL) >= 0) { 705 705 c->io_alloc = 1; 706 - sb->current_io_size = 1 + res->end - res->start; 706 + sb->current_io_size = resource_size(res); 707 707 sb->current_mem_base = res->start; 708 708 osm_info("%s: allocated %llu bytes of PCI I/O at " 709 709 "0x%016llX.\n", c->name, 710 - (unsigned long long)(1 + res->end - res->start), 710 + (unsigned long long)resource_size(res), 711 711 (unsigned long long)res->start); 712 712 } 713 713 }
+1 -1
drivers/mfd/tc6387xb.c
··· 177 177 if (ret) 178 178 goto err_resource; 179 179 180 - tc6387xb->scr = ioremap(rscr->start, rscr->end - rscr->start + 1); 180 + tc6387xb->scr = ioremap(rscr->start, resource_size(rscr)); 181 181 if (!tc6387xb->scr) { 182 182 ret = -ENOMEM; 183 183 goto err_ioremap;
+1 -1
drivers/misc/atmel-ssc.c
··· 95 95 } 96 96 97 97 ssc->pdev = pdev; 98 - ssc->regs = ioremap(regs->start, regs->end - regs->start + 1); 98 + ssc->regs = ioremap(regs->start, resource_size(regs)); 99 99 if (!ssc->regs) { 100 100 dev_dbg(&pdev->dev, "ioremap failed\n"); 101 101 retval = -EINVAL;
+1 -1
drivers/misc/atmel_pwm.c
··· 329 329 p->pdev = pdev; 330 330 p->mask = *mp; 331 331 p->irq = irq; 332 - p->base = ioremap(r->start, r->end - r->start + 1); 332 + p->base = ioremap(r->start, resource_size(r)); 333 333 if (!p->base) 334 334 goto fail; 335 335 p->clk = clk_get(&pdev->dev, "pwm_clk");
+1 -1
drivers/mmc/host/dw_mmc.c
··· 1825 1825 INIT_LIST_HEAD(&host->queue); 1826 1826 1827 1827 ret = -ENOMEM; 1828 - host->regs = ioremap(regs->start, regs->end - regs->start + 1); 1828 + host->regs = ioremap(regs->start, resource_size(regs)); 1829 1829 if (!host->regs) 1830 1830 goto err_freehost; 1831 1831
+2 -2
drivers/mmc/host/vub300.c
··· 1625 1625 cmd->error = respretval; 1626 1626 } else if (cmd->error) { 1627 1627 /* 1628 - * the error occured sending the command 1629 - * or recieving the response 1628 + * the error occurred sending the command 1629 + * or receiving the response 1630 1630 */ 1631 1631 } else if (vub300->command_out_urb->status) { 1632 1632 vub300->usb_transport_fail = vub300->command_out_urb->status;
+2 -2
drivers/mtd/devices/sst25l.c
··· 5 5 * 6 6 * Copyright © 2009 Bluewater Systems Ltd 7 7 * Author: Andre Renaud <andre@bluewatersys.com> 8 - * Author: Ryan Mallon <ryan@bluewatersys.com> 8 + * Author: Ryan Mallon 9 9 * 10 10 * Based on m25p80.c 11 11 * ··· 498 498 499 499 MODULE_DESCRIPTION("MTD SPI driver for SST25L Flash chips"); 500 500 MODULE_AUTHOR("Andre Renaud <andre@bluewatersys.com>, " 501 - "Ryan Mallon <ryan@bluewatersys.com>"); 501 + "Ryan Mallon"); 502 502 MODULE_LICENSE("GPL");
+1 -1
drivers/mtd/maps/bfin-async-flash.c
··· 142 142 state->map.write = bfin_flash_write; 143 143 state->map.copy_to = bfin_flash_copy_to; 144 144 state->map.bankwidth = pdata->width; 145 - state->map.size = memory->end - memory->start + 1; 145 + state->map.size = resource_size(memory); 146 146 state->map.virt = (void __iomem *)memory->start; 147 147 state->map.phys = memory->start; 148 148 state->map.map_priv_1 = (unsigned long)state;
+6 -5
drivers/mtd/maps/ixp2000.c
··· 155 155 if (!plat) 156 156 return -ENODEV; 157 157 158 - window_size = dev->resource->end - dev->resource->start + 1; 158 + window_size = resource_size(dev->resource); 159 159 dev_info(&dev->dev, "Probe of IXP2000 flash(%d banks x %dMiB)\n", 160 160 ixp_data->nr_banks, ((u32)window_size >> 20)); 161 161 ··· 194 194 info->map.copy_to = ixp2000_flash_copy_to; 195 195 196 196 info->res = request_mem_region(dev->resource->start, 197 - dev->resource->end - dev->resource->start + 1, 198 - dev_name(&dev->dev)); 197 + resource_size(dev->resource), 198 + dev_name(&dev->dev)); 199 199 if (!info->res) { 200 200 dev_err(&dev->dev, "Could not reserve memory region\n"); 201 201 err = -ENOMEM; 202 202 goto Error; 203 203 } 204 204 205 - info->map.map_priv_1 = (unsigned long) ioremap(dev->resource->start, 206 - dev->resource->end - dev->resource->start + 1); 205 + info->map.map_priv_1 = 206 + (unsigned long)ioremap(dev->resource->start, 207 + resource_size(dev->resource)); 207 208 if (!info->map.map_priv_1) { 208 209 dev_err(&dev->dev, "Failed to ioremap flash region\n"); 209 210 err = -EIO;
+1 -1
drivers/mtd/maps/pxa2xx-flash.c
··· 70 70 info->map.name = (char *) flash->name; 71 71 info->map.bankwidth = flash->width; 72 72 info->map.phys = res->start; 73 - info->map.size = res->end - res->start + 1; 73 + info->map.size = resource_size(res); 74 74 info->parts = flash->parts; 75 75 info->nr_parts = flash->nr_parts; 76 76
+2 -2
drivers/mtd/nand/atmel_nand.c
··· 514 514 515 515 host->io_phys = (dma_addr_t)mem->start; 516 516 517 - host->io_base = ioremap(mem->start, mem->end - mem->start + 1); 517 + host->io_base = ioremap(mem->start, resource_size(mem)); 518 518 if (host->io_base == NULL) { 519 519 printk(KERN_ERR "atmel_nand: ioremap failed\n"); 520 520 res = -EIO; ··· 548 548 if (no_ecc) 549 549 nand_chip->ecc.mode = NAND_ECC_NONE; 550 550 if (hard_ecc && regs) { 551 - host->ecc = ioremap(regs->start, regs->end - regs->start + 1); 551 + host->ecc = ioremap(regs->start, resource_size(regs)); 552 552 if (host->ecc == NULL) { 553 553 printk(KERN_ERR "atmel_nand: ioremap failed\n"); 554 554 res = -EIO;
+1 -1
drivers/mtd/nand/bcm_umi_nand.c
··· 380 380 return -ENXIO; 381 381 382 382 /* map physical address */ 383 - bcm_umi_io_base = ioremap(r->start, r->end - r->start + 1); 383 + bcm_umi_io_base = ioremap(r->start, resource_size(r)); 384 384 385 385 if (!bcm_umi_io_base) { 386 386 printk(KERN_ERR "ioremap to access BCM UMI NAND chip failed\n");
+1 -1
drivers/mtd/nand/mpc5121_nfc.c
··· 713 713 } 714 714 715 715 regs_paddr = res.start; 716 - regs_size = res.end - res.start + 1; 716 + regs_size = resource_size(&res); 717 717 718 718 if (!devm_request_mem_region(dev, regs_paddr, regs_size, DRV_NAME)) { 719 719 dev_err(dev, "Error requesting memory region!\n");
+1 -1
drivers/net/b44.c
··· 5 5 * Copyright (C) 2004 Florian Schirmer (jolt@tuxbox.org) 6 6 * Copyright (C) 2006 Felix Fietkau (nbd@openwrt.org) 7 7 * Copyright (C) 2006 Broadcom Corporation. 8 - * Copyright (C) 2007 Michael Buesch <mb@bu3sch.de> 8 + * Copyright (C) 2007 Michael Buesch <m@bues.ch> 9 9 * 10 10 * Distribute under GPL. 11 11 */
+4 -4
drivers/net/bcm63xx_enet.c
··· 1647 1647 if (ret) 1648 1648 goto out; 1649 1649 1650 - iomem_size = res_mem->end - res_mem->start + 1; 1650 + iomem_size = resource_size(res_mem); 1651 1651 if (!request_mem_region(res_mem->start, iomem_size, "bcm63xx_enet")) { 1652 1652 ret = -EBUSY; 1653 1653 goto out; ··· 1862 1862 /* release device resources */ 1863 1863 iounmap(priv->base); 1864 1864 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 1865 - release_mem_region(res->start, res->end - res->start + 1); 1865 + release_mem_region(res->start, resource_size(res)); 1866 1866 1867 1867 /* disable hw block clocks */ 1868 1868 if (priv->phy_clk) { ··· 1898 1898 if (!res) 1899 1899 return -ENODEV; 1900 1900 1901 - iomem_size = res->end - res->start + 1; 1901 + iomem_size = resource_size(res); 1902 1902 if (!request_mem_region(res->start, iomem_size, "bcm63xx_enet_dma")) 1903 1903 return -EBUSY; 1904 1904 ··· 1916 1916 1917 1917 iounmap(bcm_enet_shared_base); 1918 1918 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 1919 - release_mem_region(res->start, res->end - res->start + 1); 1919 + release_mem_region(res->start, resource_size(res)); 1920 1920 return 0; 1921 1921 } 1922 1922
+1 -1
drivers/net/bsd_comp.c
··· 201 201 #define LAST 255 202 202 203 203 #define MAXCODE(b) ((1 << (b)) - 1) 204 - #define BADCODEM1 MAXCODE(MAX_BSD_BITS); 204 + #define BADCODEM1 MAXCODE(MAX_BSD_BITS) 205 205 206 206 #define BSD_HASH(prefix,suffix,hshift) ((((unsigned long)(suffix))<<(hshift)) \ 207 207 ^ (unsigned long)(prefix))
+1 -1
drivers/net/can/softing/softing_main.c
··· 799 799 if (!pres) 800 800 goto platform_resource_failed; 801 801 card->dpram_phys = pres->start; 802 - card->dpram_size = pres->end - pres->start + 1; 802 + card->dpram_size = resource_size(pres); 803 803 card->dpram = ioremap_nocache(card->dpram_phys, card->dpram_size); 804 804 if (!card->dpram) { 805 805 dev_alert(&card->pdev->dev, "dpram ioremap failed\n");
+3 -3
drivers/net/davinci_emac.c
··· 1822 1822 } 1823 1823 1824 1824 priv->emac_base_phys = res->start + pdata->ctrl_reg_offset; 1825 - size = res->end - res->start + 1; 1825 + size = resource_size(res); 1826 1826 if (!request_mem_region(res->start, size, ndev->name)) { 1827 1827 dev_err(&pdev->dev, "failed request_mem_region() for regs\n"); 1828 1828 rc = -ENXIO; ··· 1927 1927 cpdma_ctlr_destroy(priv->dma); 1928 1928 no_dma: 1929 1929 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 1930 - release_mem_region(res->start, res->end - res->start + 1); 1930 + release_mem_region(res->start, resource_size(res)); 1931 1931 iounmap(priv->remap_addr); 1932 1932 1933 1933 probe_quit: ··· 1961 1961 cpdma_chan_destroy(priv->rxchan); 1962 1962 cpdma_ctlr_destroy(priv->dma); 1963 1963 1964 - release_mem_region(res->start, res->end - res->start + 1); 1964 + release_mem_region(res->start, resource_size(res)); 1965 1965 1966 1966 unregister_netdev(ndev); 1967 1967 iounmap(priv->remap_addr);
+1 -1
drivers/net/eexpress.c
··· 365 365 dev->irq = mca_irqmap[(pos1>>4)&0x7]; 366 366 367 367 /* 368 - * XXX: Transciever selection is done 368 + * XXX: Transceiver selection is done 369 369 * differently on the MCA version. 370 370 * How to get it to select something 371 371 * other than external/AUI is currently
+1 -1
drivers/net/ethoc.c
··· 968 968 priv = netdev_priv(netdev); 969 969 priv->netdev = netdev; 970 970 priv->dma_alloc = 0; 971 - priv->io_region_size = mmio->end - mmio->start + 1; 971 + priv->io_region_size = resource_size(mmio); 972 972 973 973 priv->iobase = devm_ioremap_nocache(&pdev->dev, netdev->base_addr, 974 974 resource_size(mmio));
+4 -3
drivers/net/fec_mpc52xx.c
··· 871 871 "Error while parsing device node resource\n" ); 872 872 goto err_netdev; 873 873 } 874 - if ((mem.end - mem.start + 1) < sizeof(struct mpc52xx_fec)) { 874 + if (resource_size(&mem) < sizeof(struct mpc52xx_fec)) { 875 875 printk(KERN_ERR DRIVER_NAME 876 - " - invalid resource size (%lx < %x), check mpc52xx_devices.c\n", 877 - (unsigned long)(mem.end - mem.start + 1), sizeof(struct mpc52xx_fec)); 876 + " - invalid resource size (%lx < %x), check mpc52xx_devices.c\n", 877 + (unsigned long)resource_size(&mem), 878 + sizeof(struct mpc52xx_fec)); 878 879 rv = -EINVAL; 879 880 goto err_netdev; 880 881 }
+2 -2
drivers/net/fs_enet/mii-bitbang.c
··· 120 120 if (ret) 121 121 return ret; 122 122 123 - if (res.end - res.start < 13) 123 + if (resource_size(&res) <= 13) 124 124 return -ENODEV; 125 125 126 126 /* This should really encode the pin number as well, but all ··· 139 139 return -ENODEV; 140 140 mdc_pin = *data; 141 141 142 - bitbang->dir = ioremap(res.start, res.end - res.start + 1); 142 + bitbang->dir = ioremap(res.start, resource_size(&res)); 143 143 if (!bitbang->dir) 144 144 return -ENOMEM; 145 145
+1 -1
drivers/net/fs_enet/mii-fec.c
··· 136 136 137 137 snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", res.start); 138 138 139 - fec->fecp = ioremap(res.start, res.end - res.start + 1); 139 + fec->fecp = ioremap(res.start, resource_size(&res)); 140 140 if (!fec->fecp) 141 141 goto out_fec; 142 142
+1 -1
drivers/net/gianfar_ptp.c
··· 491 491 spin_lock_init(&etsects->lock); 492 492 493 493 etsects->regs = ioremap(etsects->rsrc->start, 494 - 1 + etsects->rsrc->end - etsects->rsrc->start); 494 + resource_size(etsects->rsrc)); 495 495 if (!etsects->regs) { 496 496 pr_err("ioremap ptp registers failed\n"); 497 497 goto no_ioremap;
+1 -1
drivers/net/ibm_newemac/core.c
··· 2770 2770 } 2771 2771 // TODO : request_mem_region 2772 2772 dev->emacp = ioremap(dev->rsrc_regs.start, 2773 - dev->rsrc_regs.end - dev->rsrc_regs.start + 1); 2773 + resource_size(&dev->rsrc_regs)); 2774 2774 if (dev->emacp == NULL) { 2775 2775 printk(KERN_ERR "%s: Can't map device registers!\n", 2776 2776 np->full_name);
+1 -1
drivers/net/irda/toim3232-sir.c
··· 78 78 * Target hardware: IRWave IR320ST-2 79 79 * 80 80 * The IRWave IR320ST-2 is a simple dongle based on the Vishay/Temic 81 - * TOIM3232 SIR Endec and the Vishay/Temic TFDS4500 SIR IRDA transciever. 81 + * TOIM3232 SIR Endec and the Vishay/Temic TFDS4500 SIR IRDA transceiver. 82 82 * It uses a hex inverter and some discrete components to buffer and 83 83 * line convert the RS232 down to 5V. 84 84 *
+1 -1
drivers/net/macb.c
··· 1172 1172 clk_enable(bp->hclk); 1173 1173 #endif 1174 1174 1175 - bp->regs = ioremap(regs->start, regs->end - regs->start + 1); 1175 + bp->regs = ioremap(regs->start, resource_size(regs)); 1176 1176 if (!bp->regs) { 1177 1177 dev_err(&pdev->dev, "failed to map registers, aborting.\n"); 1178 1178 err = -ENOMEM;
+1 -1
drivers/net/mv643xx_eth.c
··· 2597 2597 if (msp == NULL) 2598 2598 goto out; 2599 2599 2600 - msp->base = ioremap(res->start, res->end - res->start + 1); 2600 + msp->base = ioremap(res->start, resource_size(res)); 2601 2601 if (msp->base == NULL) 2602 2602 goto out_free; 2603 2603
+2 -2
drivers/net/natsemi.c
··· 1382 1382 /* WCSR bits [0:4] [9:10] */ 1383 1383 #define WCSR_RESET_SAVE 0x61f 1384 1384 /* RFCR bits [20] [22] [27:31] */ 1385 - #define RFCR_RESET_SAVE 0xf8500000; 1385 + #define RFCR_RESET_SAVE 0xf8500000 1386 1386 1387 1387 static void natsemi_reset(struct net_device *dev) 1388 1388 { ··· 2920 2920 2921 2921 /* 2922 2922 * If we're ignoring the PHY then autoneg and the internal 2923 - * transciever are really not going to work so don't let the 2923 + * transceiver are really not going to work so don't let the 2924 2924 * user select them. 2925 2925 */ 2926 2926 if (np->ignore_phy && (ecmd->autoneg == AUTONEG_ENABLE ||
+1 -1
drivers/net/pxa168_eth.c
··· 1505 1505 err = -ENODEV; 1506 1506 goto err_netdev; 1507 1507 } 1508 - pep->base = ioremap(res->start, res->end - res->start + 1); 1508 + pep->base = ioremap(res->start, resource_size(res)); 1509 1509 if (pep->base == NULL) { 1510 1510 err = -ENOMEM; 1511 1511 goto err_netdev;
+1 -1
drivers/net/r8169.c
··· 694 694 size_t size; 695 695 } phy_action; 696 696 } *rtl_fw; 697 - #define RTL_FIRMWARE_UNKNOWN ERR_PTR(-EAGAIN); 697 + #define RTL_FIRMWARE_UNKNOWN ERR_PTR(-EAGAIN) 698 698 }; 699 699 700 700 MODULE_AUTHOR("Realtek and the Linux r8169 crew <netdev@vger.kernel.org>");
+2 -2
drivers/net/s2io.h
··· 967 967 u8 serial_num[VPD_STRING_LEN]; 968 968 }; 969 969 970 - #define RESET_ERROR 1; 971 - #define CMD_ERROR 2; 970 + #define RESET_ERROR 1 971 + #define CMD_ERROR 2 972 972 973 973 /* OS related system calls */ 974 974 #ifndef readq
+1 -1
drivers/net/sb1250-mac.c
··· 2597 2597 2598 2598 res = platform_get_resource(pldev, IORESOURCE_MEM, 0); 2599 2599 BUG_ON(!res); 2600 - sbm_base = ioremap_nocache(res->start, res->end - res->start + 1); 2600 + sbm_base = ioremap_nocache(res->start, resource_size(res)); 2601 2601 if (!sbm_base) { 2602 2602 printk(KERN_ERR "%s: unable to map device registers\n", 2603 2603 dev_name(&pldev->dev));
+1 -2
drivers/net/sungem.c
··· 46 46 #include <asm/byteorder.h> 47 47 #include <asm/uaccess.h> 48 48 #include <asm/irq.h> 49 + #include <asm/prom.h> 49 50 50 51 #ifdef CONFIG_SPARC 51 52 #include <asm/idprom.h> 52 - #include <asm/prom.h> 53 53 #endif 54 54 55 55 #ifdef CONFIG_PPC_PMAC 56 56 #include <asm/pci-bridge.h> 57 - #include <asm/prom.h> 58 57 #include <asm/machdep.h> 59 58 #include <asm/pmac_feature.h> 60 59 #endif
+1 -1
drivers/net/wan/lmc/lmc_var.h
··· 380 380 /* CSR6 settings */ 381 381 #define OPERATION_MODE 0x00000200 /* Full Duplex */ 382 382 #define PROMISC_MODE 0x00000040 /* Promiscuous Mode */ 383 - #define RECIEVE_ALL 0x40000000 /* Receive All */ 383 + #define RECEIVE_ALL 0x40000000 /* Receive All */ 384 384 #define PASS_BAD_FRAMES 0x00000008 /* Pass Bad Frames */ 385 385 386 386 /* Dec control registers CSR6 as well */
-1
drivers/net/wireless/ath/ath5k/ahb.c
··· 24 24 #include "debug.h" 25 25 #include "base.h" 26 26 #include "reg.h" 27 - #include "debug.h" 28 27 29 28 /* return bus cachesize in 4B word units */ 30 29 static void ath5k_ahb_read_cachesize(struct ath_common *common, int *csz)
+1 -1
drivers/net/wireless/b43/debugfs.c
··· 4 4 5 5 debugfs driver debugging code 6 6 7 - Copyright (c) 2005-2007 Michael Buesch <mb@bu3sch.de> 7 + Copyright (c) 2005-2007 Michael Buesch <m@bues.ch> 8 8 9 9 This program is free software; you can redistribute it and/or modify 10 10 it under the terms of the GNU General Public License as published by
+1 -1
drivers/net/wireless/b43/dma.c
··· 4 4 5 5 DMA ringbuffer and descriptor allocation/management 6 6 7 - Copyright (c) 2005, 2006 Michael Buesch <mb@bu3sch.de> 7 + Copyright (c) 2005, 2006 Michael Buesch <m@bues.ch> 8 8 9 9 Some code in this file is derived from the b44.c driver 10 10 Copyright (C) 2002 David S. Miller
+1 -1
drivers/net/wireless/b43/leds.c
··· 5 5 6 6 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 7 7 Copyright (c) 2005 Stefano Brivio <stefano.brivio@polimi.it> 8 - Copyright (c) 2005-2007 Michael Buesch <mb@bu3sch.de> 8 + Copyright (c) 2005-2007 Michael Buesch <m@bues.ch> 9 9 Copyright (c) 2005 Danny van Dyk <kugelfang@gentoo.org> 10 10 Copyright (c) 2005 Andreas Jaggi <andreas.jaggi@waterwave.ch> 11 11
+1 -1
drivers/net/wireless/b43/lo.c
··· 6 6 7 7 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 8 8 Copyright (c) 2005, 2006 Stefano Brivio <stefano.brivio@polimi.it> 9 - Copyright (c) 2005-2007 Michael Buesch <mb@bu3sch.de> 9 + Copyright (c) 2005-2007 Michael Buesch <m@bues.ch> 10 10 Copyright (c) 2005, 2006 Danny van Dyk <kugelfang@gentoo.org> 11 11 Copyright (c) 2005, 2006 Andreas Jaggi <andreas.jaggi@waterwave.ch> 12 12
+1 -1
drivers/net/wireless/b43/main.c
··· 4 4 5 5 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de> 6 6 Copyright (c) 2005 Stefano Brivio <stefano.brivio@polimi.it> 7 - Copyright (c) 2005-2009 Michael Buesch <mb@bu3sch.de> 7 + Copyright (c) 2005-2009 Michael Buesch <m@bues.ch> 8 8 Copyright (c) 2005 Danny van Dyk <kugelfang@gentoo.org> 9 9 Copyright (c) 2005 Andreas Jaggi <andreas.jaggi@waterwave.ch> 10 10
+1 -1
drivers/net/wireless/b43/main.h
··· 4 4 5 5 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 6 6 Stefano Brivio <stefano.brivio@polimi.it> 7 - Michael Buesch <mb@bu3sch.de> 7 + Michael Buesch <m@bues.ch> 8 8 Danny van Dyk <kugelfang@gentoo.org> 9 9 Andreas Jaggi <andreas.jaggi@waterwave.ch> 10 10
+1 -1
drivers/net/wireless/b43/pcmcia.c
··· 2 2 3 3 Broadcom B43 wireless driver 4 4 5 - Copyright (c) 2007 Michael Buesch <mb@bu3sch.de> 5 + Copyright (c) 2007 Michael Buesch <m@bues.ch> 6 6 7 7 This program is free software; you can redistribute it and/or modify 8 8 it under the terms of the GNU General Public License as published by
+1 -1
drivers/net/wireless/b43/phy_a.c
··· 5 5 6 6 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 7 7 Copyright (c) 2005-2007 Stefano Brivio <stefano.brivio@polimi.it> 8 - Copyright (c) 2005-2008 Michael Buesch <mb@bu3sch.de> 8 + Copyright (c) 2005-2008 Michael Buesch <m@bues.ch> 9 9 Copyright (c) 2005, 2006 Danny van Dyk <kugelfang@gentoo.org> 10 10 Copyright (c) 2005, 2006 Andreas Jaggi <andreas.jaggi@waterwave.ch> 11 11
+1 -1
drivers/net/wireless/b43/phy_common.c
··· 5 5 6 6 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 7 7 Copyright (c) 2005-2007 Stefano Brivio <stefano.brivio@polimi.it> 8 - Copyright (c) 2005-2008 Michael Buesch <mb@bu3sch.de> 8 + Copyright (c) 2005-2008 Michael Buesch <m@bues.ch> 9 9 Copyright (c) 2005, 2006 Danny van Dyk <kugelfang@gentoo.org> 10 10 Copyright (c) 2005, 2006 Andreas Jaggi <andreas.jaggi@waterwave.ch> 11 11
+1 -1
drivers/net/wireless/b43/phy_g.c
··· 5 5 6 6 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 7 7 Copyright (c) 2005-2007 Stefano Brivio <stefano.brivio@polimi.it> 8 - Copyright (c) 2005-2008 Michael Buesch <mb@bu3sch.de> 8 + Copyright (c) 2005-2008 Michael Buesch <m@bues.ch> 9 9 Copyright (c) 2005, 2006 Danny van Dyk <kugelfang@gentoo.org> 10 10 Copyright (c) 2005, 2006 Andreas Jaggi <andreas.jaggi@waterwave.ch> 11 11
+1 -1
drivers/net/wireless/b43/phy_lp.c
··· 3 3 Broadcom B43 wireless driver 4 4 IEEE 802.11a/g LP-PHY driver 5 5 6 - Copyright (c) 2008-2009 Michael Buesch <mb@bu3sch.de> 6 + Copyright (c) 2008-2009 Michael Buesch <m@bues.ch> 7 7 Copyright (c) 2009 Gábor Stefanik <netrolller.3d@gmail.com> 8 8 9 9 This program is free software; you can redistribute it and/or modify
+1 -1
drivers/net/wireless/b43/phy_n.c
··· 3 3 Broadcom B43 wireless driver 4 4 IEEE 802.11n PHY support 5 5 6 - Copyright (c) 2008 Michael Buesch <mb@bu3sch.de> 6 + Copyright (c) 2008 Michael Buesch <m@bues.ch> 7 7 8 8 This program is free software; you can redistribute it and/or modify 9 9 it under the terms of the GNU General Public License as published by
+1 -1
drivers/net/wireless/b43/pio.c
··· 4 4 5 5 PIO data transfer 6 6 7 - Copyright (c) 2005-2008 Michael Buesch <mb@bu3sch.de> 7 + Copyright (c) 2005-2008 Michael Buesch <m@bues.ch> 8 8 9 9 This program is free software; you can redistribute it and/or modify 10 10 it under the terms of the GNU General Public License as published by
+1 -1
drivers/net/wireless/b43/radio_2055.c
··· 3 3 Broadcom B43 wireless driver 4 4 IEEE 802.11n PHY and radio device data tables 5 5 6 - Copyright (c) 2008 Michael Buesch <mb@bu3sch.de> 6 + Copyright (c) 2008 Michael Buesch <m@bues.ch> 7 7 8 8 This program is free software; you can redistribute it and/or modify 9 9 it under the terms of the GNU General Public License as published by
+1 -1
drivers/net/wireless/b43/rfkill.c
··· 3 3 Broadcom B43 wireless driver 4 4 RFKILL support 5 5 6 - Copyright (c) 2007 Michael Buesch <mb@bu3sch.de> 6 + Copyright (c) 2007 Michael Buesch <m@bues.ch> 7 7 8 8 This program is free software; you can redistribute it and/or modify 9 9 it under the terms of the GNU General Public License as published by
+1 -1
drivers/net/wireless/b43/sdio.c
··· 4 4 * SDIO over Sonics Silicon Backplane bus glue for b43. 5 5 * 6 6 * Copyright (C) 2009 Albert Herranz 7 - * Copyright (C) 2009 Michael Buesch <mb@bu3sch.de> 7 + * Copyright (C) 2009 Michael Buesch <m@bues.ch> 8 8 * 9 9 * This program is free software; you can redistribute it and/or modify 10 10 * it under the terms of the GNU General Public License as published by
+1 -1
drivers/net/wireless/b43/sysfs.c
··· 4 4 5 5 SYSFS support routines 6 6 7 - Copyright (c) 2006 Michael Buesch <mb@bu3sch.de> 7 + Copyright (c) 2006 Michael Buesch <m@bues.ch> 8 8 9 9 This program is free software; you can redistribute it and/or modify 10 10 it under the terms of the GNU General Public License as published by
+1 -1
drivers/net/wireless/b43/tables.c
··· 4 4 5 5 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 6 6 Copyright (c) 2005-2007 Stefano Brivio <stefano.brivio@polimi.it> 7 - Copyright (c) 2006, 2006 Michael Buesch <mb@bu3sch.de> 7 + Copyright (c) 2006, 2006 Michael Buesch <m@bues.ch> 8 8 Copyright (c) 2005 Danny van Dyk <kugelfang@gentoo.org> 9 9 Copyright (c) 2005 Andreas Jaggi <andreas.jaggi@waterwave.ch> 10 10
+1 -1
drivers/net/wireless/b43/tables_lpphy.c
··· 3 3 Broadcom B43 wireless driver 4 4 IEEE 802.11a/g LP-PHY and radio device data tables 5 5 6 - Copyright (c) 2009 Michael Buesch <mb@bu3sch.de> 6 + Copyright (c) 2009 Michael Buesch <m@bues.ch> 7 7 Copyright (c) 2009 Gábor Stefanik <netrolller.3d@gmail.com> 8 8 9 9 This program is free software; you can redistribute it and/or modify
+1 -1
drivers/net/wireless/b43/tables_nphy.c
··· 3 3 Broadcom B43 wireless driver 4 4 IEEE 802.11n PHY data tables 5 5 6 - Copyright (c) 2008 Michael Buesch <mb@bu3sch.de> 6 + Copyright (c) 2008 Michael Buesch <m@bues.ch> 7 7 8 8 This program is free software; you can redistribute it and/or modify 9 9 it under the terms of the GNU General Public License as published by
+1 -1
drivers/net/wireless/b43/wa.c
··· 5 5 PHY workarounds. 6 6 7 7 Copyright (c) 2005-2007 Stefano Brivio <stefano.brivio@polimi.it> 8 - Copyright (c) 2005-2007 Michael Buesch <mbuesch@freenet.de> 8 + Copyright (c) 2005-2007 Michael Buesch <m@bues.ch> 9 9 10 10 This program is free software; you can redistribute it and/or modify 11 11 it under the terms of the GNU General Public License as published by
+1 -1
drivers/net/wireless/b43/xmit.c
··· 6 6 7 7 Copyright (C) 2005 Martin Langer <martin-langer@gmx.de> 8 8 Copyright (C) 2005 Stefano Brivio <stefano.brivio@polimi.it> 9 - Copyright (C) 2005, 2006 Michael Buesch <mb@bu3sch.de> 9 + Copyright (C) 2005, 2006 Michael Buesch <m@bues.ch> 10 10 Copyright (C) 2005 Danny van Dyk <kugelfang@gentoo.org> 11 11 Copyright (C) 2005 Andreas Jaggi <andreas.jaggi@waterwave.ch> 12 12
+1 -1
drivers/net/wireless/b43legacy/debugfs.c
··· 4 4 5 5 debugfs driver debugging code 6 6 7 - Copyright (c) 2005-2007 Michael Buesch <mb@bu3sch.de> 7 + Copyright (c) 2005-2007 Michael Buesch <m@bues.ch> 8 8 9 9 This program is free software; you can redistribute it and/or modify 10 10 it under the terms of the GNU General Public License as published by
+1 -1
drivers/net/wireless/b43legacy/dma.c
··· 4 4 5 5 DMA ringbuffer and descriptor allocation/management 6 6 7 - Copyright (c) 2005, 2006 Michael Buesch <mb@bu3sch.de> 7 + Copyright (c) 2005, 2006 Michael Buesch <m@bues.ch> 8 8 9 9 Some code in this file is derived from the b44.c driver 10 10 Copyright (C) 2002 David S. Miller
+1 -1
drivers/net/wireless/b43legacy/ilt.c
··· 4 4 5 5 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 6 6 Stefano Brivio <stefano.brivio@polimi.it> 7 - Michael Buesch <mbuesch@freenet.de> 7 + Michael Buesch <m@bues.ch> 8 8 Danny van Dyk <kugelfang@gentoo.org> 9 9 Andreas Jaggi <andreas.jaggi@waterwave.ch> 10 10
+1 -1
drivers/net/wireless/b43legacy/leds.c
··· 5 5 6 6 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 7 7 Copyright (c) 2005 Stefano Brivio <stefano.brivio@polimi.it> 8 - Copyright (c) 2005-2007 Michael Buesch <mb@bu3sch.de> 8 + Copyright (c) 2005-2007 Michael Buesch <m@bues.ch> 9 9 Copyright (c) 2005 Danny van Dyk <kugelfang@gentoo.org> 10 10 Copyright (c) 2005 Andreas Jaggi <andreas.jaggi@waterwave.ch> 11 11
+1 -1
drivers/net/wireless/b43legacy/main.c
··· 4 4 * 5 5 * Copyright (c) 2005 Martin Langer <martin-langer@gmx.de> 6 6 * Copyright (c) 2005-2008 Stefano Brivio <stefano.brivio@polimi.it> 7 - * Copyright (c) 2005, 2006 Michael Buesch <mb@bu3sch.de> 7 + * Copyright (c) 2005, 2006 Michael Buesch <m@bues.ch> 8 8 * Copyright (c) 2005 Danny van Dyk <kugelfang@gentoo.org> 9 9 * Copyright (c) 2005 Andreas Jaggi <andreas.jaggi@waterwave.ch> 10 10 * Copyright (c) 2007 Larry Finger <Larry.Finger@lwfinger.net>
+1 -1
drivers/net/wireless/b43legacy/main.h
··· 4 4 5 5 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 6 6 Copyright (c) 2005 Stefano Brivio <stefano.brivio@polimi.it> 7 - Copyright (c) 2005, 2006 Michael Buesch <mb@bu3sch.de> 7 + Copyright (c) 2005, 2006 Michael Buesch <m@bues.ch> 8 8 Copyright (c) 2005 Danny van Dyk <kugelfang@gentoo.org> 9 9 Copyright (c) 2005 Andreas Jaggi <andreas.jaggi@waterwave.ch> 10 10 Copyright (c) 2007 Larry Finger <Larry.Finger@lwfinger.net>
+1 -1
drivers/net/wireless/b43legacy/phy.c
··· 4 4 5 5 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 6 6 Stefano Brivio <stefano.brivio@polimi.it> 7 - Michael Buesch <mbuesch@freenet.de> 7 + Michael Buesch <m@bues.ch> 8 8 Danny van Dyk <kugelfang@gentoo.org> 9 9 Andreas Jaggi <andreas.jaggi@waterwave.ch> 10 10 Copyright (c) 2007 Larry Finger <Larry.Finger@lwfinger.net>
+1 -1
drivers/net/wireless/b43legacy/phy.h
··· 4 4 5 5 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 6 6 Stefano Brivio <stefano.brivio@polimi.it> 7 - Michael Buesch <mbuesch@freenet.de> 7 + Michael Buesch <m@bues.ch> 8 8 Danny van Dyk <kugelfang@gentoo.org> 9 9 Andreas Jaggi <andreas.jaggi@waterwave.ch> 10 10 Copyright (c) 2007 Larry Finger <Larry.Finger@lwfinger.net>
+1 -1
drivers/net/wireless/b43legacy/pio.c
··· 4 4 5 5 PIO Transmission 6 6 7 - Copyright (c) 2005 Michael Buesch <mb@bu3sch.de> 7 + Copyright (c) 2005 Michael Buesch <m@bues.ch> 8 8 9 9 This program is free software; you can redistribute it and/or modify 10 10 it under the terms of the GNU General Public License as published by
+1 -1
drivers/net/wireless/b43legacy/radio.c
··· 4 4 5 5 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 6 6 Stefano Brivio <stefano.brivio@polimi.it> 7 - Michael Buesch <mbuesch@freenet.de> 7 + Michael Buesch <m@bues.ch> 8 8 Danny van Dyk <kugelfang@gentoo.org> 9 9 Andreas Jaggi <andreas.jaggi@waterwave.ch> 10 10 Copyright (c) 2007 Larry Finger <Larry.Finger@lwfinger.net>
+1 -1
drivers/net/wireless/b43legacy/radio.h
··· 4 4 5 5 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 6 6 Stefano Brivio <stefano.brivio@polimi.it> 7 - Michael Buesch <mbuesch@freenet.de> 7 + Michael Buesch <m@bues.ch> 8 8 Danny van Dyk <kugelfang@gentoo.org> 9 9 Andreas Jaggi <andreas.jaggi@waterwave.ch> 10 10
+1 -1
drivers/net/wireless/b43legacy/rfkill.c
··· 3 3 Broadcom B43 wireless driver 4 4 RFKILL support 5 5 6 - Copyright (c) 2007 Michael Buesch <mb@bu3sch.de> 6 + Copyright (c) 2007 Michael Buesch <m@bues.ch> 7 7 8 8 This program is free software; you can redistribute it and/or modify 9 9 it under the terms of the GNU General Public License as published by
+1 -1
drivers/net/wireless/b43legacy/sysfs.c
··· 4 4 5 5 SYSFS support routines 6 6 7 - Copyright (c) 2006 Michael Buesch <mb@bu3sch.de> 7 + Copyright (c) 2006 Michael Buesch <m@bues.ch> 8 8 9 9 This program is free software; you can redistribute it and/or modify 10 10 it under the terms of the GNU General Public License as published by
+1 -1
drivers/net/wireless/b43legacy/xmit.c
··· 6 6 7 7 Copyright (C) 2005 Martin Langer <martin-langer@gmx.de> 8 8 Copyright (C) 2005 Stefano Brivio <stefano.brivio@polimi.it> 9 - Copyright (C) 2005, 2006 Michael Buesch <mb@bu3sch.de> 9 + Copyright (C) 2005, 2006 Michael Buesch <m@bues.ch> 10 10 Copyright (C) 2005 Danny van Dyk <kugelfang@gentoo.org> 11 11 Copyright (C) 2005 Andreas Jaggi <andreas.jaggi@waterwave.ch> 12 12 Copyright (C) 2007 Larry Finger <Larry.Finger@lwfinger.net>
+2 -2
drivers/net/wireless/iwlegacy/iwl-commands.h
··· 2617 2617 __le32 status; 2618 2618 } __packed; 2619 2619 2620 - #define SCAN_OWNER_STATUS 0x1; 2621 - #define MEASURE_OWNER_STATUS 0x2; 2620 + #define SCAN_OWNER_STATUS 0x1 2621 + #define MEASURE_OWNER_STATUS 0x2 2622 2622 2623 2623 #define IWL_PROBE_STATUS_OK 0 2624 2624 #define IWL_PROBE_STATUS_TX_FAILED BIT(0)
+2 -2
drivers/net/wireless/iwlwifi/iwl-commands.h
··· 2468 2468 __le32 status; 2469 2469 } __packed; 2470 2470 2471 - #define SCAN_OWNER_STATUS 0x1; 2472 - #define MEASURE_OWNER_STATUS 0x2; 2471 + #define SCAN_OWNER_STATUS 0x1 2472 + #define MEASURE_OWNER_STATUS 0x2 2473 2473 2474 2474 #define IWL_PROBE_STATUS_OK 0 2475 2475 #define IWL_PROBE_STATUS_TX_FAILED BIT(0)
+2 -2
drivers/net/wireless/rtlwifi/rtl8192ce/reg.h
··· 1074 1074 #define _SRL(x) (((x) & 0x3F) << 8) 1075 1075 1076 1076 #define _SIFS_CCK_CTX(x) ((x) & 0xFF) 1077 - #define _SIFS_CCK_TRX(x) (((x) & 0xFF) << 8); 1077 + #define _SIFS_CCK_TRX(x) (((x) & 0xFF) << 8) 1078 1078 1079 1079 #define _SIFS_OFDM_CTX(x) ((x) & 0xFF) 1080 - #define _SIFS_OFDM_TRX(x) (((x) & 0xFF) << 8); 1080 + #define _SIFS_OFDM_TRX(x) (((x) & 0xFF) << 8) 1081 1081 1082 1082 #define _TBTT_PROHIBIT_HOLD(x) (((x) & 0xFF) << 8) 1083 1083
+1 -1
drivers/parport/parport_ax88796.c
··· 293 293 goto exit_mem; 294 294 } 295 295 296 - size = (res->end - res->start) + 1; 296 + size = resource_size(res); 297 297 spacing = size / 3; 298 298 299 299 dd->io = request_mem_region(res->start, size, pdev->name);
+9 -12
drivers/pci/hotplug/shpchp_sysfs.c
··· 50 50 pci_bus_for_each_resource(bus, res, index) { 51 51 if (res && (res->flags & IORESOURCE_MEM) && 52 52 !(res->flags & IORESOURCE_PREFETCH)) { 53 - out += sprintf(out, "start = %8.8llx, " 54 - "length = %8.8llx\n", 55 - (unsigned long long)res->start, 56 - (unsigned long long)(res->end - res->start)); 53 + out += sprintf(out, "start = %8.8llx, length = %8.8llx\n", 54 + (unsigned long long)res->start, 55 + (unsigned long long)resource_size(res)); 57 56 } 58 57 } 59 58 out += sprintf(out, "Free resources: prefetchable memory\n"); 60 59 pci_bus_for_each_resource(bus, res, index) { 61 60 if (res && (res->flags & IORESOURCE_MEM) && 62 61 (res->flags & IORESOURCE_PREFETCH)) { 63 - out += sprintf(out, "start = %8.8llx, " 64 - "length = %8.8llx\n", 65 - (unsigned long long)res->start, 66 - (unsigned long long)(res->end - res->start)); 62 + out += sprintf(out, "start = %8.8llx, length = %8.8llx\n", 63 + (unsigned long long)res->start, 64 + (unsigned long long)resource_size(res)); 67 65 } 68 66 } 69 67 out += sprintf(out, "Free resources: IO\n"); 70 68 pci_bus_for_each_resource(bus, res, index) { 71 69 if (res && (res->flags & IORESOURCE_IO)) { 72 - out += sprintf(out, "start = %8.8llx, " 73 - "length = %8.8llx\n", 74 - (unsigned long long)res->start, 75 - (unsigned long long)(res->end - res->start)); 70 + out += sprintf(out, "start = %8.8llx, length = %8.8llx\n", 71 + (unsigned long long)res->start, 72 + (unsigned long long)resource_size(res)); 76 73 } 77 74 } 78 75 out += sprintf(out, "Free resources: bus numbers\n");
+1 -1
drivers/pci/pcie/aspm.c
··· 940 940 printk(KERN_INFO "PCIe ASPM is disabled\n"); 941 941 } else if (!strcmp(str, "force")) { 942 942 aspm_force = 1; 943 - printk(KERN_INFO "PCIe ASPM is forcedly enabled\n"); 943 + printk(KERN_INFO "PCIe ASPM is forcibly enabled\n"); 944 944 } 945 945 return 1; 946 946 }
+3 -4
drivers/pcmcia/at91_cf.c
··· 283 283 } 284 284 285 285 /* reserve chip-select regions */ 286 - if (!request_mem_region(io->start, io->end + 1 - io->start, 287 - driver_name)) { 286 + if (!request_mem_region(io->start, resource_size(io), driver_name)) { 288 287 status = -ENXIO; 289 288 goto fail1; 290 289 } ··· 307 308 return 0; 308 309 309 310 fail2: 310 - release_mem_region(io->start, io->end + 1 - io->start); 311 + release_mem_region(io->start, resource_size(io)); 311 312 fail1: 312 313 if (cf->socket.io_offset) 313 314 iounmap((void __iomem *) cf->socket.io_offset); ··· 338 339 struct resource *io = cf->socket.io[0].res; 339 340 340 341 pcmcia_unregister_socket(&cf->socket); 341 - release_mem_region(io->start, io->end + 1 - io->start); 342 + release_mem_region(io->start, resource_size(io)); 342 343 iounmap((void __iomem *) cf->socket.io_offset); 343 344 if (board->irq_pin) { 344 345 free_irq(board->irq_pin, cf);
+2 -2
drivers/pcmcia/electra_cf.c
··· 209 209 210 210 cf->ofdev = ofdev; 211 211 cf->mem_phys = mem.start; 212 - cf->mem_size = PAGE_ALIGN(mem.end - mem.start); 212 + cf->mem_size = PAGE_ALIGN(resource_size(&mem)); 213 213 cf->mem_base = ioremap(cf->mem_phys, cf->mem_size); 214 - cf->io_size = PAGE_ALIGN(io.end - io.start); 214 + cf->io_size = PAGE_ALIGN(resource_size(&io)); 215 215 216 216 area = __get_vm_area(cf->io_size, 0, PHB_IO_BASE, PHB_IO_END); 217 217 if (area == NULL)
+3 -3
drivers/pcmcia/rsrc_iodyn.c
··· 135 135 try = res->end + 1; 136 136 if ((*base == 0) || (*base == try)) { 137 137 if (adjust_resource(s->io[i].res, res->start, 138 - res->end - res->start + num + 1)) 138 + resource_size(res) + num)) 139 139 continue; 140 140 *base = try; 141 141 s->io[i].InUse += num; ··· 147 147 try = res->start - num; 148 148 if ((*base == 0) || (*base == try)) { 149 149 if (adjust_resource(s->io[i].res, 150 - res->start - num, 151 - res->end - res->start + num + 1)) 150 + res->start - num, 151 + resource_size(res) + num)) 152 152 continue; 153 153 *base = try; 154 154 s->io[i].InUse += num;
+3 -3
drivers/pcmcia/rsrc_nonstatic.c
··· 770 770 res->end + num); 771 771 if (!ret) { 772 772 ret = adjust_resource(s->io[i].res, res->start, 773 - res->end - res->start + num + 1); 773 + resource_size(res) + num); 774 774 if (ret) 775 775 continue; 776 776 *base = try; ··· 788 788 res->end); 789 789 if (!ret) { 790 790 ret = adjust_resource(s->io[i].res, 791 - res->start - num, 792 - res->end - res->start + num + 1); 791 + res->start - num, 792 + resource_size(res) + num); 793 793 if (ret) 794 794 continue; 795 795 *base = try;
+5 -5
drivers/pnp/pnpacpi/rsparser.c
··· 1018 1018 io->minimum = p->start; 1019 1019 io->maximum = p->end; 1020 1020 io->alignment = 0; /* Correct? */ 1021 - io->address_length = p->end - p->start + 1; 1021 + io->address_length = resource_size(p); 1022 1022 } else { 1023 1023 io->minimum = 0; 1024 1024 io->address_length = 0; ··· 1036 1036 1037 1037 if (pnp_resource_enabled(p)) { 1038 1038 fixed_io->address = p->start; 1039 - fixed_io->address_length = p->end - p->start + 1; 1039 + fixed_io->address_length = resource_size(p); 1040 1040 } else { 1041 1041 fixed_io->address = 0; 1042 1042 fixed_io->address_length = 0; ··· 1059 1059 memory24->minimum = p->start; 1060 1060 memory24->maximum = p->end; 1061 1061 memory24->alignment = 0; 1062 - memory24->address_length = p->end - p->start + 1; 1062 + memory24->address_length = resource_size(p); 1063 1063 } else { 1064 1064 memory24->minimum = 0; 1065 1065 memory24->address_length = 0; ··· 1083 1083 memory32->minimum = p->start; 1084 1084 memory32->maximum = p->end; 1085 1085 memory32->alignment = 0; 1086 - memory32->address_length = p->end - p->start + 1; 1086 + memory32->address_length = resource_size(p); 1087 1087 } else { 1088 1088 memory32->minimum = 0; 1089 1089 memory32->alignment = 0; ··· 1106 1106 p->flags & IORESOURCE_MEM_WRITEABLE ? 1107 1107 ACPI_READ_WRITE_MEMORY : ACPI_READ_ONLY_MEMORY; 1108 1108 fixed_memory32->address = p->start; 1109 - fixed_memory32->address_length = p->end - p->start + 1; 1109 + fixed_memory32->address_length = resource_size(p); 1110 1110 } else { 1111 1111 fixed_memory32->address = 0; 1112 1112 fixed_memory32->address_length = 0;
+6 -6
drivers/pnp/pnpbios/rsparser.c
··· 505 505 506 506 if (pnp_resource_enabled(res)) { 507 507 base = res->start; 508 - len = res->end - res->start + 1; 508 + len = resource_size(res); 509 509 } else { 510 510 base = 0; 511 511 len = 0; ··· 529 529 530 530 if (pnp_resource_enabled(res)) { 531 531 base = res->start; 532 - len = res->end - res->start + 1; 532 + len = resource_size(res); 533 533 } else { 534 534 base = 0; 535 535 len = 0; ··· 559 559 560 560 if (pnp_resource_enabled(res)) { 561 561 base = res->start; 562 - len = res->end - res->start + 1; 562 + len = resource_size(res); 563 563 } else { 564 564 base = 0; 565 565 len = 0; ··· 617 617 618 618 if (pnp_resource_enabled(res)) { 619 619 base = res->start; 620 - len = res->end - res->start + 1; 620 + len = resource_size(res); 621 621 } else { 622 622 base = 0; 623 623 len = 0; ··· 636 636 struct resource *res) 637 637 { 638 638 unsigned long base = res->start; 639 - unsigned long len = res->end - res->start + 1; 639 + unsigned long len = resource_size(res); 640 640 641 641 if (pnp_resource_enabled(res)) { 642 642 base = res->start; 643 - len = res->end - res->start + 1; 643 + len = resource_size(res); 644 644 } else { 645 645 base = 0; 646 646 len = 0;
+2 -2
drivers/power/ds2782_battery.c
··· 3 3 * 4 4 * Copyright (C) 2009 Bluewater Systems Ltd 5 5 * 6 - * Author: Ryan Mallon <ryan@bluewatersys.com> 6 + * Author: Ryan Mallon 7 7 * 8 8 * DS2786 added by Yulia Vilensky <vilensky@compulab.co.il> 9 9 * ··· 416 416 } 417 417 module_exit(ds278x_exit); 418 418 419 - MODULE_AUTHOR("Ryan Mallon <ryan@bluewatersys.com>"); 419 + MODULE_AUTHOR("Ryan Mallon"); 420 420 MODULE_DESCRIPTION("Maxim/Dallas DS2782 Stand-Alone Fuel Gauage IC driver"); 421 421 MODULE_LICENSE("GPL");
+1 -1
drivers/rtc/rtc-at32ap700x.c
··· 223 223 } 224 224 225 225 rtc->irq = irq; 226 - rtc->regs = ioremap(regs->start, regs->end - regs->start + 1); 226 + rtc->regs = ioremap(regs->start, resource_size(regs)); 227 227 if (!rtc->regs) { 228 228 ret = -ENOMEM; 229 229 dev_dbg(&pdev->dev, "could not map I/O memory\n");
+3 -3
drivers/rtc/rtc-cmos.c
··· 606 606 * (needing ioremap etc), not i/o space resources like this ... 607 607 */ 608 608 ports = request_region(ports->start, 609 - ports->end + 1 - ports->start, 609 + resource_size(ports), 610 610 driver_name); 611 611 if (!ports) { 612 612 dev_dbg(dev, "i/o registers already in use\n"); ··· 750 750 cmos_rtc.dev = NULL; 751 751 rtc_device_unregister(cmos_rtc.rtc); 752 752 cleanup0: 753 - release_region(ports->start, ports->end + 1 - ports->start); 753 + release_region(ports->start, resource_size(ports)); 754 754 return retval; 755 755 } 756 756 ··· 779 779 cmos->rtc = NULL; 780 780 781 781 ports = cmos->iomem; 782 - release_region(ports->start, ports->end + 1 - ports->start); 782 + release_region(ports->start, resource_size(ports)); 783 783 cmos->iomem = NULL; 784 784 785 785 cmos->dev = NULL;
+1 -1
drivers/rtc/rtc-ds1286.c
··· 343 343 if (!priv) 344 344 return -ENOMEM; 345 345 346 - priv->size = res->end - res->start + 1; 346 + priv->size = resource_size(res); 347 347 if (!request_mem_region(res->start, priv->size, pdev->name)) { 348 348 ret = -EBUSY; 349 349 goto out;
+1 -1
drivers/rtc/rtc-ds1511.c
··· 490 490 pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); 491 491 if (!pdata) 492 492 return -ENOMEM; 493 - pdata->size = res->end - res->start + 1; 493 + pdata->size = resource_size(res); 494 494 if (!devm_request_mem_region(&pdev->dev, res->start, pdata->size, 495 495 pdev->name)) 496 496 return -EBUSY;
+1 -1
drivers/rtc/rtc-ds1742.c
··· 173 173 pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); 174 174 if (!pdata) 175 175 return -ENOMEM; 176 - pdata->size = res->end - res->start + 1; 176 + pdata->size = resource_size(res); 177 177 if (!devm_request_mem_region(&pdev->dev, res->start, pdata->size, 178 178 pdev->name)) 179 179 return -EBUSY;
+1 -1
drivers/rtc/rtc-m48t35.c
··· 154 154 if (!priv) 155 155 return -ENOMEM; 156 156 157 - priv->size = res->end - res->start + 1; 157 + priv->size = resource_size(res); 158 158 /* 159 159 * kludge: remove the #ifndef after ioc3 resource 160 160 * conflicts are resolved
+1 -1
drivers/rtc/rtc-m48t59.c
··· 433 433 434 434 if (!m48t59->ioaddr) { 435 435 /* ioaddr not mapped externally */ 436 - m48t59->ioaddr = ioremap(res->start, res->end - res->start + 1); 436 + m48t59->ioaddr = ioremap(res->start, resource_size(res)); 437 437 if (!m48t59->ioaddr) 438 438 goto out; 439 439 }
+2 -3
drivers/rtc/rtc-mrst.c
··· 332 332 if (!iomem) 333 333 return -ENODEV; 334 334 335 - iomem = request_mem_region(iomem->start, 336 - iomem->end + 1 - iomem->start, 337 - driver_name); 335 + iomem = request_mem_region(iomem->start, resource_size(iomem), 336 + driver_name); 338 337 if (!iomem) { 339 338 dev_dbg(dev, "i/o mem already in use.\n"); 340 339 return -EBUSY;
+2 -3
drivers/rtc/rtc-puv3.c
··· 267 267 return -ENOENT; 268 268 } 269 269 270 - puv3_rtc_mem = request_mem_region(res->start, 271 - res->end-res->start+1, 272 - pdev->name); 270 + puv3_rtc_mem = request_mem_region(res->start, resource_size(res), 271 + pdev->name); 273 272 274 273 if (puv3_rtc_mem == NULL) { 275 274 dev_err(&pdev->dev, "failed to reserve memory region\n");
+2 -3
drivers/rtc/rtc-s3c.c
··· 455 455 return -ENOENT; 456 456 } 457 457 458 - s3c_rtc_mem = request_mem_region(res->start, 459 - res->end-res->start+1, 458 + s3c_rtc_mem = request_mem_region(res->start, resource_size(res), 460 459 pdev->name); 461 460 462 461 if (s3c_rtc_mem == NULL) { ··· 464 465 goto err_nores; 465 466 } 466 467 467 - s3c_rtc_base = ioremap(res->start, res->end - res->start + 1); 468 + s3c_rtc_base = ioremap(res->start, resource_size(res)); 468 469 if (s3c_rtc_base == NULL) { 469 470 dev_err(&pdev->dev, "failed ioremap()\n"); 470 471 ret = -EINVAL;
+1 -1
drivers/scsi/device_handler/scsi_dh_rdac.c
··· 35 35 * mode page were taken from the LSI RDAC 2.4 GPL'd 36 36 * driver, and then converted to Linux conventions. 37 37 */ 38 - #define RDAC_QUIESCENCE_TIME 20; 38 + #define RDAC_QUIESCENCE_TIME 20 39 39 /* 40 40 * Page Codes 41 41 */
+4 -4
drivers/scsi/lpfc/lpfc_hw.h
··· 2955 2955 typedef struct _PCB { 2956 2956 #ifdef __BIG_ENDIAN_BITFIELD 2957 2957 uint32_t type:8; 2958 - #define TYPE_NATIVE_SLI2 0x01; 2958 + #define TYPE_NATIVE_SLI2 0x01 2959 2959 uint32_t feature:8; 2960 - #define FEATURE_INITIAL_SLI2 0x01; 2960 + #define FEATURE_INITIAL_SLI2 0x01 2961 2961 uint32_t rsvd:12; 2962 2962 uint32_t maxRing:4; 2963 2963 #else /* __LITTLE_ENDIAN_BITFIELD */ 2964 2964 uint32_t maxRing:4; 2965 2965 uint32_t rsvd:12; 2966 2966 uint32_t feature:8; 2967 - #define FEATURE_INITIAL_SLI2 0x01; 2967 + #define FEATURE_INITIAL_SLI2 0x01 2968 2968 uint32_t type:8; 2969 - #define TYPE_NATIVE_SLI2 0x01; 2969 + #define TYPE_NATIVE_SLI2 0x01 2970 2970 #endif 2971 2971 2972 2972 uint32_t mailBoxSize;
+2 -2
drivers/scsi/qla2xxx/qla_isr.c
··· 63 63 64 64 /* 65 65 * Issue a "HARD" reset in order for the RISC interrupt 66 - * bit to be cleared. Schedule a big hammmer to get 66 + * bit to be cleared. Schedule a big hammer to get 67 67 * out of the RISC PAUSED state. 68 68 */ 69 69 WRT_REG_WORD(&reg->hccr, HCCR_RESET_RISC); ··· 169 169 /* 170 170 * Issue a "HARD" reset in order for the RISC 171 171 * interrupt bit to be cleared. Schedule a big 172 - * hammmer to get out of the RISC PAUSED state. 172 + * hammer to get out of the RISC PAUSED state. 173 173 */ 174 174 WRT_REG_WORD(&reg->hccr, HCCR_RESET_RISC); 175 175 RD_REG_WORD(&reg->hccr);
+1 -1
drivers/ssb/b43_pci_bridge.c
··· 5 5 * because of its small size we include it in the SSB core 6 6 * instead of creating a standalone module. 7 7 * 8 - * Copyright 2007 Michael Buesch <mb@bu3sch.de> 8 + * Copyright 2007 Michael Buesch <m@bues.ch> 9 9 * 10 10 * Licensed under the GNU/GPL. See COPYING for details. 11 11 */
+1 -1
drivers/ssb/driver_chipcommon.c
··· 3 3 * Broadcom ChipCommon core driver 4 4 * 5 5 * Copyright 2005, Broadcom Corporation 6 - * Copyright 2006, 2007, Michael Buesch <mb@bu3sch.de> 6 + * Copyright 2006, 2007, Michael Buesch <m@bues.ch> 7 7 * 8 8 * Licensed under the GNU/GPL. See COPYING for details. 9 9 */
+1 -1
drivers/ssb/driver_chipcommon_pmu.c
··· 2 2 * Sonics Silicon Backplane 3 3 * Broadcom ChipCommon Power Management Unit driver 4 4 * 5 - * Copyright 2009, Michael Buesch <mb@bu3sch.de> 5 + * Copyright 2009, Michael Buesch <m@bues.ch> 6 6 * Copyright 2007, Broadcom Corporation 7 7 * 8 8 * Licensed under the GNU/GPL. See COPYING for details.
+1 -1
drivers/ssb/driver_extif.c
··· 3 3 * Broadcom EXTIF core driver 4 4 * 5 5 * Copyright 2005, Broadcom Corporation 6 - * Copyright 2006, 2007, Michael Buesch <mb@bu3sch.de> 6 + * Copyright 2006, 2007, Michael Buesch <m@bues.ch> 7 7 * Copyright 2006, 2007, Felix Fietkau <nbd@openwrt.org> 8 8 * Copyright 2007, Aurelien Jarno <aurelien@aurel32.net> 9 9 *
+1 -1
drivers/ssb/driver_gige.c
··· 3 3 * Broadcom Gigabit Ethernet core driver 4 4 * 5 5 * Copyright 2008, Broadcom Corporation 6 - * Copyright 2008, Michael Buesch <mb@bu3sch.de> 6 + * Copyright 2008, Michael Buesch <m@bues.ch> 7 7 * 8 8 * Licensed under the GNU/GPL. See COPYING for details. 9 9 */
+1 -1
drivers/ssb/driver_mipscore.c
··· 3 3 * Broadcom MIPS core driver 4 4 * 5 5 * Copyright 2005, Broadcom Corporation 6 - * Copyright 2006, 2007, Michael Buesch <mb@bu3sch.de> 6 + * Copyright 2006, 2007, Michael Buesch <m@bues.ch> 7 7 * 8 8 * Licensed under the GNU/GPL. See COPYING for details. 9 9 */
+1 -1
drivers/ssb/driver_pcicore.c
··· 3 3 * Broadcom PCI-core driver 4 4 * 5 5 * Copyright 2005, Broadcom Corporation 6 - * Copyright 2006, 2007, Michael Buesch <mb@bu3sch.de> 6 + * Copyright 2006, 2007, Michael Buesch <m@bues.ch> 7 7 * 8 8 * Licensed under the GNU/GPL. See COPYING for details. 9 9 */
+1 -1
drivers/ssb/embedded.c
··· 3 3 * Embedded systems support code 4 4 * 5 5 * Copyright 2005-2008, Broadcom Corporation 6 - * Copyright 2006-2008, Michael Buesch <mb@bu3sch.de> 6 + * Copyright 2006-2008, Michael Buesch <m@bues.ch> 7 7 * 8 8 * Licensed under the GNU/GPL. See COPYING for details. 9 9 */
+1 -1
drivers/ssb/main.c
··· 3 3 * Subsystem core 4 4 * 5 5 * Copyright 2005, Broadcom Corporation 6 - * Copyright 2006, 2007, Michael Buesch <mb@bu3sch.de> 6 + * Copyright 2006, 2007, Michael Buesch <m@bues.ch> 7 7 * 8 8 * Licensed under the GNU/GPL. See COPYING for details. 9 9 */
+1 -1
drivers/ssb/pci.c
··· 1 1 /* 2 2 * Sonics Silicon Backplane PCI-Hostbus related functions. 3 3 * 4 - * Copyright (C) 2005-2006 Michael Buesch <mb@bu3sch.de> 4 + * Copyright (C) 2005-2006 Michael Buesch <m@bues.ch> 5 5 * Copyright (C) 2005 Martin Langer <martin-langer@gmx.de> 6 6 * Copyright (C) 2005 Stefano Brivio <st3@riseup.net> 7 7 * Copyright (C) 2005 Danny van Dyk <kugelfang@gentoo.org>
+1 -1
drivers/ssb/pcihost_wrapper.c
··· 6 6 * Copyright (c) 2005 Stefano Brivio <st3@riseup.net> 7 7 * Copyright (c) 2005 Danny van Dyk <kugelfang@gentoo.org> 8 8 * Copyright (c) 2005 Andreas Jaggi <andreas.jaggi@waterwave.ch> 9 - * Copyright (c) 2005-2007 Michael Buesch <mbuesch@freenet.de> 9 + * Copyright (c) 2005-2007 Michael Buesch <m@bues.ch> 10 10 * 11 11 * Licensed under the GNU/GPL. See COPYING for details. 12 12 */
+1 -1
drivers/ssb/pcmcia.c
··· 3 3 * PCMCIA-Hostbus related functions 4 4 * 5 5 * Copyright 2006 Johannes Berg <johannes@sipsolutions.net> 6 - * Copyright 2007-2008 Michael Buesch <mb@bu3sch.de> 6 + * Copyright 2007-2008 Michael Buesch <m@bues.ch> 7 7 * 8 8 * Licensed under the GNU/GPL. See COPYING for details. 9 9 */
+1 -1
drivers/ssb/scan.c
··· 2 2 * Sonics Silicon Backplane 3 3 * Bus scanning 4 4 * 5 - * Copyright (C) 2005-2007 Michael Buesch <mb@bu3sch.de> 5 + * Copyright (C) 2005-2007 Michael Buesch <m@bues.ch> 6 6 * Copyright (C) 2005 Martin Langer <martin-langer@gmx.de> 7 7 * Copyright (C) 2005 Stefano Brivio <st3@riseup.net> 8 8 * Copyright (C) 2005 Danny van Dyk <kugelfang@gentoo.org>
+1 -1
drivers/ssb/sdio.c
··· 6 6 * 7 7 * Based on drivers/ssb/pcmcia.c 8 8 * Copyright 2006 Johannes Berg <johannes@sipsolutions.net> 9 - * Copyright 2007-2008 Michael Buesch <mb@bu3sch.de> 9 + * Copyright 2007-2008 Michael Buesch <m@bues.ch> 10 10 * 11 11 * Licensed under the GNU/GPL. See COPYING for details. 12 12 *
+1 -1
drivers/ssb/sprom.c
··· 2 2 * Sonics Silicon Backplane 3 3 * Common SPROM support routines 4 4 * 5 - * Copyright (C) 2005-2008 Michael Buesch <mb@bu3sch.de> 5 + * Copyright (C) 2005-2008 Michael Buesch <m@bues.ch> 6 6 * Copyright (C) 2005 Martin Langer <martin-langer@gmx.de> 7 7 * Copyright (C) 2005 Stefano Brivio <st3@riseup.net> 8 8 * Copyright (C) 2005 Danny van Dyk <kugelfang@gentoo.org>
-1
drivers/staging/ath6kl/os/linux/include/ar6000_drv.h
··· 52 52 #include "aggr_recv_api.h" 53 53 #include <host_version.h> 54 54 #include <linux/rtnetlink.h> 55 - #include <linux/init.h> 56 55 #include <linux/moduleparam.h> 57 56 #include "ar6000_api.h" 58 57 #ifdef CONFIG_HOST_TCMD_SUPPORT
+2 -5
drivers/staging/bcm/headers.h
··· 20 20 #include <linux/file.h> 21 21 #include <linux/string.h> 22 22 #include <linux/etherdevice.h> 23 - #include <net/ip.h> 24 23 #include <linux/wait.h> 25 24 #include <linux/proc_fs.h> 26 25 #include <linux/interrupt.h> 27 - 28 26 #include <linux/version.h> 29 27 #include <linux/stddef.h> 30 - #include <linux/kernel.h> 31 28 #include <linux/stat.h> 32 29 #include <linux/fcntl.h> 33 30 #include <linux/unistd.h> 34 31 #include <linux/sched.h> 35 32 #include <linux/mm.h> 36 33 #include <linux/pagemap.h> 37 - #include <asm/uaccess.h> 38 34 #include <linux/kthread.h> 39 35 #include <linux/tcp.h> 40 36 #include <linux/udp.h> 41 37 #include <linux/usb.h> 38 + #include <asm/uaccess.h> 39 + #include <net/ip.h> 42 40 43 41 #include "Typedefs.h" 44 42 #include "Version.h" ··· 58 60 #include "Prototypes.h" 59 61 #include "Queue.h" 60 62 #include "vendorspecificextn.h" 61 - 62 63 63 64 #include "InterfaceMacros.h" 64 65 #include "InterfaceAdapter.h"
-1
drivers/staging/brcm80211/brcmfmac/dhd_sdio.c
··· 26 26 #include BCMEMBEDIMAGE 27 27 #endif /* BCMEMBEDIMAGE */ 28 28 29 - #include <bcmdefs.h> 30 29 #include <bcmutils.h> 31 30 #include <bcmdevs.h> 32 31
-1
drivers/staging/brcm80211/brcmfmac/wl_cfg80211.h
··· 18 18 #define _wl_cfg80211_h_ 19 19 20 20 #include <linux/wireless.h> 21 - #include <linux/wireless.h> 22 21 #include <net/cfg80211.h> 23 22 #include <wlioctl.h> 24 23
+2 -7
drivers/staging/brcm80211/brcmfmac/wl_iw.c
··· 20 20 #include <linux/netdevice.h> 21 21 #include <linux/hardirq.h> 22 22 #include <wlioctl.h> 23 - 24 23 #include <bcmutils.h> 25 - 26 24 #include <linux/if_arp.h> 27 25 #include <asm/uaccess.h> 26 + #include <linux/ieee80211.h> 28 27 29 28 #include <dngl_stats.h> 30 29 #include <dhd.h> 31 30 #include <dhdioctl.h> 32 - #include <linux/ieee80211.h> 33 - typedef const struct si_pub si_t; 34 - #include <wlioctl.h> 35 31 36 - #include <dngl_stats.h> 37 - #include <dhd.h> 32 + typedef const struct si_pub si_t; 38 33 39 34 #define WL_ERROR(fmt, args...) printk(fmt, ##args) 40 35 #define WL_TRACE(fmt, args...) no_printk(fmt, ##args)
-1
drivers/staging/hv/hv_mouse.c
··· 24 24 #include <linux/hiddev.h> 25 25 #include <linux/pci.h> 26 26 #include <linux/dmi.h> 27 - #include <linux/delay.h> 28 27 29 28 #include "hyperv.h" 30 29
-1
drivers/staging/hv/tools/hv_kvp_daemon.c
··· 35 35 #include <arpa/inet.h> 36 36 #include <linux/connector.h> 37 37 #include <linux/netlink.h> 38 - #include <sys/socket.h> 39 38 #include <ifaddrs.h> 40 39 #include <netdb.h> 41 40 #include <syslog.h>
-1
drivers/staging/nvec/nvec.c
··· 21 21 #include <linux/semaphore.h> 22 22 #include <linux/list.h> 23 23 #include <linux/notifier.h> 24 - #include <linux/workqueue.h> 25 24 #include <linux/platform_device.h> 26 25 #include "nvec.h" 27 26
-1
drivers/staging/rtl8712/drv_types.h
··· 29 29 30 30 #include "rtl871x_ht.h" 31 31 #include "rtl871x_cmd.h" 32 - #include "wlan_bssdef.h" 33 32 #include "rtl871x_xmit.h" 34 33 #include "rtl871x_recv.h" 35 34 #include "rtl871x_security.h"
-1
drivers/staging/rtl8712/osdep_service.h
··· 22 22 #include <linux/module.h> 23 23 #include <linux/sched.h> 24 24 #include <linux/kref.h> 25 - #include <linux/netdevice.h> 26 25 #include <linux/skbuff.h> 27 26 #include <linux/usb.h> 28 27 #include <linux/usb/ch9.h>
-1
drivers/staging/sep/sep_driver.c
··· 50 50 #include <linux/interrupt.h> 51 51 #include <linux/pagemap.h> 52 52 #include <asm/cacheflush.h> 53 - #include <linux/sched.h> 54 53 #include <linux/delay.h> 55 54 #include <linux/jiffies.h> 56 55 #include <linux/rar_register.h>
-1
drivers/staging/usbip/userspace/src/utils.h
··· 13 13 #include <glib.h> 14 14 #include <unistd.h> 15 15 #include <stdio.h> 16 - #include <sys/types.h> 17 16 #include <sys/stat.h> 18 17 #include <fcntl.h> 19 18 #include <stdlib.h>
-1
drivers/target/tcm_fc/tfc_cmd.c
··· 45 45 #include <target/target_core_device.h> 46 46 #include <target/target_core_tpg.h> 47 47 #include <target/target_core_configfs.h> 48 - #include <target/target_core_base.h> 49 48 #include <target/target_core_tmr.h> 50 49 #include <target/configfs_macros.h> 51 50
-1
drivers/target/tcm_fc/tfc_conf.c
··· 48 48 #include <target/target_core_device.h> 49 49 #include <target/target_core_tpg.h> 50 50 #include <target/target_core_configfs.h> 51 - #include <target/target_core_base.h> 52 51 #include <target/configfs_macros.h> 53 52 54 53 #include "tcm_fc.h"
-1
drivers/target/tcm_fc/tfc_io.c
··· 54 54 #include <target/target_core_device.h> 55 55 #include <target/target_core_tpg.h> 56 56 #include <target/target_core_configfs.h> 57 - #include <target/target_core_base.h> 58 57 #include <target/configfs_macros.h> 59 58 60 59 #include "tcm_fc.h"
-2
drivers/target/tcm_fc/tfc_sess.c
··· 46 46 #include <target/target_core_device.h> 47 47 #include <target/target_core_tpg.h> 48 48 #include <target/target_core_configfs.h> 49 - #include <target/target_core_base.h> 50 49 #include <target/configfs_macros.h> 51 50 52 - #include <scsi/libfc.h> 53 51 #include "tcm_fc.h" 54 52 55 53 static void ft_sess_delete_all(struct ft_tport *);
+1 -1
drivers/tty/serial/8250_pci.c
··· 743 743 len = pci_resource_len(priv->dev, bar); 744 744 p = ioremap_nocache(base, len); 745 745 746 - /* enable the transciever */ 746 + /* enable the transceiver */ 747 747 writeb(readb(p + offset + NI8430_PORTCON) | NI8430_PORTCON_TXVR_ENABLE, 748 748 p + offset + NI8430_PORTCON); 749 749
+2 -3
drivers/tty/serial/bfin_5xx.c
··· 1304 1304 goto out_error_free_peripherals; 1305 1305 } 1306 1306 1307 - uart->port.membase = ioremap(res->start, 1308 - res->end - res->start); 1307 + uart->port.membase = ioremap(res->start, resource_size(res)); 1309 1308 if (!uart->port.membase) { 1310 1309 dev_err(&pdev->dev, "Cannot map uart IO\n"); 1311 1310 ret = -ENXIO; ··· 1482 1483 } 1483 1484 1484 1485 bfin_earlyprintk_port.port.membase = ioremap(res->start, 1485 - res->end - res->start); 1486 + resource_size(res)); 1486 1487 if (!bfin_earlyprintk_port.port.membase) { 1487 1488 dev_err(&pdev->dev, "Cannot map uart IO\n"); 1488 1489 ret = -ENXIO;
+2 -3
drivers/tty/serial/imx.c
··· 954 954 struct resource *mmres; 955 955 956 956 mmres = platform_get_resource(pdev, IORESOURCE_MEM, 0); 957 - release_mem_region(mmres->start, mmres->end - mmres->start + 1); 957 + release_mem_region(mmres->start, resource_size(mmres)); 958 958 } 959 959 960 960 /* ··· 970 970 if (!mmres) 971 971 return -ENODEV; 972 972 973 - ret = request_mem_region(mmres->start, mmres->end - mmres->start + 1, 974 - "imx-uart"); 973 + ret = request_mem_region(mmres->start, resource_size(mmres), "imx-uart"); 975 974 976 975 return ret ? 0 : -EBUSY; 977 976 }
+1 -1
drivers/tty/serial/m32r_sio.c
··· 892 892 * If we have a mapbase, then request that as well. 893 893 */ 894 894 if (ret == 0 && up->port.flags & UPF_IOREMAP) { 895 - int size = res->end - res->start + 1; 895 + int size = resource_size(res); 896 896 897 897 up->port.membase = ioremap(up->port.mapbase, size); 898 898 if (!up->port.membase)
+3 -3
drivers/tty/serial/omap-serial.c
··· 1241 1241 return -ENODEV; 1242 1242 } 1243 1243 1244 - if (!request_mem_region(mem->start, (mem->end - mem->start) + 1, 1245 - pdev->dev.driver->name)) { 1244 + if (!request_mem_region(mem->start, resource_size(mem), 1245 + pdev->dev.driver->name)) { 1246 1246 dev_err(&pdev->dev, "memory region already claimed\n"); 1247 1247 return -EBUSY; 1248 1248 } ··· 1308 1308 dev_err(&pdev->dev, "[UART%d]: failure [%s]: %d\n", 1309 1309 pdev->id, __func__, ret); 1310 1310 do_release_region: 1311 - release_mem_region(mem->start, (mem->end - mem->start) + 1); 1311 + release_mem_region(mem->start, resource_size(mem)); 1312 1312 return ret; 1313 1313 } 1314 1314
+1 -1
drivers/tty/serial/pxa.c
··· 803 803 break; 804 804 } 805 805 806 - sport->port.membase = ioremap(mmres->start, mmres->end - mmres->start + 1); 806 + sport->port.membase = ioremap(mmres->start, resource_size(mmres)); 807 807 if (!sport->port.membase) { 808 808 ret = -ENOMEM; 809 809 goto err_clk;
+1 -1
drivers/tty/serial/sunsu.c
··· 1435 1435 1436 1436 rp = &op->resource[0]; 1437 1437 up->port.mapbase = rp->start; 1438 - up->reg_size = (rp->end - rp->start) + 1; 1438 + up->reg_size = resource_size(rp); 1439 1439 up->port.membase = of_ioremap(rp, 0, up->reg_size, "su"); 1440 1440 if (!up->port.membase) { 1441 1441 if (type != SU_PORT_PORT)
+1 -2
drivers/tty/serial/vt8500_serial.c
··· 573 573 snprintf(vt8500_port->name, sizeof(vt8500_port->name), 574 574 "VT8500 UART%d", pdev->id); 575 575 576 - vt8500_port->uart.membase = ioremap(mmres->start, 577 - mmres->end - mmres->start + 1); 576 + vt8500_port->uart.membase = ioremap(mmres->start, resource_size(mmres)); 578 577 if (!vt8500_port->uart.membase) { 579 578 ret = -ENOMEM; 580 579 goto err;
+1 -1
drivers/uio/uio_pdrv.c
··· 58 58 59 59 uiomem->memtype = UIO_MEM_PHYS; 60 60 uiomem->addr = r->start; 61 - uiomem->size = r->end - r->start + 1; 61 + uiomem->size = resource_size(r); 62 62 ++uiomem; 63 63 } 64 64
+1 -1
drivers/uio/uio_pdrv_genirq.c
··· 137 137 138 138 uiomem->memtype = UIO_MEM_PHYS; 139 139 uiomem->addr = r->start; 140 - uiomem->size = r->end - r->start + 1; 140 + uiomem->size = resource_size(r); 141 141 ++uiomem; 142 142 } 143 143
+1 -1
drivers/usb/gadget/atmel_usba_udc.c
··· 272 272 273 273 regs_resource = platform_get_resource(udc->pdev, IORESOURCE_MEM, 274 274 CTRL_IOMEM_ID); 275 - regs->d_inode->i_size = regs_resource->end - regs_resource->start + 1; 275 + regs->d_inode->i_size = resource_size(regs_resource); 276 276 udc->debugfs_regs = regs; 277 277 278 278 usba_ep_init_debugfs(udc, to_usba_ep(udc->gadget.ep0));
+3 -3
drivers/usb/gadget/fsl_udc_core.c
··· 2463 2463 } 2464 2464 2465 2465 if (pdata->operating_mode == FSL_USB2_DR_DEVICE) { 2466 - if (!request_mem_region(res->start, res->end - res->start + 1, 2466 + if (!request_mem_region(res->start, resource_size(res), 2467 2467 driver_name)) { 2468 2468 ERR("request mem region for %s failed\n", pdev->name); 2469 2469 ret = -EBUSY; ··· 2605 2605 iounmap(dr_regs); 2606 2606 err_release_mem_region: 2607 2607 if (pdata->operating_mode == FSL_USB2_DR_DEVICE) 2608 - release_mem_region(res->start, res->end - res->start + 1); 2608 + release_mem_region(res->start, resource_size(res)); 2609 2609 err_kfree: 2610 2610 kfree(udc_controller); 2611 2611 udc_controller = NULL; ··· 2640 2640 free_irq(udc_controller->irq, udc_controller); 2641 2641 iounmap(dr_regs); 2642 2642 if (pdata->operating_mode == FSL_USB2_DR_DEVICE) 2643 - release_mem_region(res->start, res->end - res->start + 1); 2643 + release_mem_region(res->start, resource_size(res)); 2644 2644 2645 2645 device_unregister(&udc_controller->gadget.dev); 2646 2646 /* free udc --wait for the release() finished */
+2 -2
drivers/usb/gadget/pxa27x_udc.h
··· 88 88 #define UDCISR_INT_MASK (UDCICR_FIFOERR | UDCICR_PKTCOMPL) 89 89 90 90 #define UDCOTGICR_IESF (1 << 24) /* OTG SET_FEATURE command recvd */ 91 - #define UDCOTGICR_IEXR (1 << 17) /* Extra Transciever Interrupt 91 + #define UDCOTGICR_IEXR (1 << 17) /* Extra Transceiver Interrupt 92 92 Rising Edge Interrupt Enable */ 93 - #define UDCOTGICR_IEXF (1 << 16) /* Extra Transciever Interrupt 93 + #define UDCOTGICR_IEXF (1 << 16) /* Extra Transceiver Interrupt 94 94 Falling Edge Interrupt Enable */ 95 95 #define UDCOTGICR_IEVV40R (1 << 9) /* OTG Vbus Valid 4.0V Rising Edge 96 96 Interrupt Enable */
+1 -1
drivers/usb/host/ehci-ath79.c
··· 148 148 return -ENOMEM; 149 149 150 150 hcd->rsrc_start = res->start; 151 - hcd->rsrc_len = res->end - res->start + 1; 151 + hcd->rsrc_len = resource_size(res); 152 152 153 153 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { 154 154 dev_dbg(&pdev->dev, "controller already in use\n");
+1 -1
drivers/usb/host/ehci-cns3xxx.c
··· 107 107 } 108 108 109 109 hcd->rsrc_start = res->start; 110 - hcd->rsrc_len = res->end - res->start + 1; 110 + hcd->rsrc_len = resource_size(res); 111 111 112 112 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, 113 113 driver->description)) {
+1 -1
drivers/usb/host/ehci-fsl.c
··· 100 100 goto err2; 101 101 } 102 102 hcd->rsrc_start = res->start; 103 - hcd->rsrc_len = res->end - res->start + 1; 103 + hcd->rsrc_len = resource_size(res); 104 104 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, 105 105 driver->description)) { 106 106 dev_dbg(&pdev->dev, "controller already in use\n");
+1 -1
drivers/usb/host/ehci-grlib.c
··· 130 130 return -ENOMEM; 131 131 132 132 hcd->rsrc_start = res.start; 133 - hcd->rsrc_len = res.end - res.start + 1; 133 + hcd->rsrc_len = resource_size(&res); 134 134 135 135 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { 136 136 printk(KERN_ERR "%s: request_mem_region failed\n", __FILE__);
+1 -1
drivers/usb/host/ehci-ixp4xx.c
··· 100 100 goto fail_request_resource; 101 101 } 102 102 hcd->rsrc_start = res->start; 103 - hcd->rsrc_len = res->end - res->start + 1; 103 + hcd->rsrc_len = resource_size(res); 104 104 105 105 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, 106 106 driver->description)) {
+1 -1
drivers/usb/host/ehci-octeon.c
··· 124 124 return -ENOMEM; 125 125 126 126 hcd->rsrc_start = res_mem->start; 127 - hcd->rsrc_len = res_mem->end - res_mem->start + 1; 127 + hcd->rsrc_len = resource_size(res_mem); 128 128 129 129 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, 130 130 OCTEON_EHCI_HCD_NAME)) {
+5 -5
drivers/usb/host/ehci-pmcmsp.c
··· 124 124 res = platform_get_resource(pdev, IORESOURCE_MEM, 1); 125 125 if (res == NULL) 126 126 return -ENOMEM; 127 - res_len = res->end - res->start + 1; 127 + res_len = resource_size(res); 128 128 if (!request_mem_region(res->start, res_len, "mab regs")) 129 129 return -EBUSY; 130 130 ··· 140 140 retval = -ENOMEM; 141 141 goto err2; 142 142 } 143 - res_len = res->end - res->start + 1; 143 + res_len = resource_size(res); 144 144 if (!request_mem_region(res->start, res_len, "usbid regs")) { 145 145 retval = -EBUSY; 146 146 goto err2; ··· 154 154 return 0; 155 155 err3: 156 156 res = platform_get_resource(pdev, IORESOURCE_MEM, 2); 157 - res_len = res->end - res->start + 1; 157 + res_len = resource_size(res); 158 158 release_mem_region(res->start, res_len); 159 159 err2: 160 160 iounmap(dev->mab_regs); 161 161 err1: 162 162 res = platform_get_resource(pdev, IORESOURCE_MEM, 1); 163 - res_len = res->end - res->start + 1; 163 + res_len = resource_size(res); 164 164 release_mem_region(res->start, res_len); 165 165 dev_err(&pdev->dev, "Failed to map non-EHCI regs.\n"); 166 166 return retval; ··· 194 194 goto err1; 195 195 } 196 196 hcd->rsrc_start = res->start; 197 - hcd->rsrc_len = res->end - res->start + 1; 197 + hcd->rsrc_len = resource_size(res); 198 198 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, dev->name)) { 199 199 retval = -EBUSY; 200 200 goto err1;
+1 -1
drivers/usb/host/ehci-ppc-of.c
··· 130 130 return -ENOMEM; 131 131 132 132 hcd->rsrc_start = res.start; 133 - hcd->rsrc_len = res.end - res.start + 1; 133 + hcd->rsrc_len = resource_size(&res); 134 134 135 135 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { 136 136 printk(KERN_ERR "%s: request_mem_region failed\n", __FILE__);
+1 -1
drivers/usb/host/ehci-w90x900.c
··· 41 41 } 42 42 43 43 hcd->rsrc_start = res->start; 44 - hcd->rsrc_len = res->end - res->start + 1; 44 + hcd->rsrc_len = resource_size(res); 45 45 46 46 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { 47 47 retval = -EBUSY;
+1 -1
drivers/usb/host/ehci-xilinx-of.c
··· 174 174 return -ENOMEM; 175 175 176 176 hcd->rsrc_start = res.start; 177 - hcd->rsrc_len = res.end - res.start + 1; 177 + hcd->rsrc_len = resource_size(&res); 178 178 179 179 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { 180 180 printk(KERN_ERR "%s: request_mem_region failed\n", __FILE__);
+1 -1
drivers/usb/host/fhci-hcd.c
··· 605 605 goto err_regs; 606 606 } 607 607 608 - hcd->regs = ioremap(usb_regs.start, usb_regs.end - usb_regs.start + 1); 608 + hcd->regs = ioremap(usb_regs.start, resource_size(&usb_regs)); 609 609 if (!hcd->regs) { 610 610 dev_err(dev, "could not ioremap regs\n"); 611 611 ret = -ENOMEM;
+2 -2
drivers/usb/host/ohci-ath79.c
··· 93 93 ret = -ENODEV; 94 94 goto err_put_hcd; 95 95 } 96 - hcd->rsrc_start = res->start; 97 - hcd->rsrc_len = res->end - res->start + 1; 96 + hcd->rsrc_start = res->start; 97 + hcd->rsrc_len = resource_size(res); 98 98 99 99 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { 100 100 dev_dbg(&pdev->dev, "controller already in use\n");
+1 -1
drivers/usb/host/ohci-cns3xxx.c
··· 100 100 goto err1; 101 101 } 102 102 hcd->rsrc_start = res->start; 103 - hcd->rsrc_len = res->end - res->start + 1; 103 + hcd->rsrc_len = resource_size(res); 104 104 105 105 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, 106 106 driver->description)) {
+1 -1
drivers/usb/host/ohci-da8xx.c
··· 322 322 goto err2; 323 323 } 324 324 hcd->rsrc_start = mem->start; 325 - hcd->rsrc_len = mem->end - mem->start + 1; 325 + hcd->rsrc_len = resource_size(mem); 326 326 327 327 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { 328 328 dev_dbg(&pdev->dev, "request_mem_region failed\n");
+1 -1
drivers/usb/host/ohci-octeon.c
··· 135 135 return -ENOMEM; 136 136 137 137 hcd->rsrc_start = res_mem->start; 138 - hcd->rsrc_len = res_mem->end - res_mem->start + 1; 138 + hcd->rsrc_len = resource_size(res_mem); 139 139 140 140 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, 141 141 OCTEON_OHCI_HCD_NAME)) {
+1 -1
drivers/usb/host/ohci-ppc-of.c
··· 110 110 return -ENOMEM; 111 111 112 112 hcd->rsrc_start = res.start; 113 - hcd->rsrc_len = res.end - res.start + 1; 113 + hcd->rsrc_len = resource_size(&res); 114 114 115 115 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { 116 116 printk(KERN_ERR "%s: request_mem_region failed\n", __FILE__);
+1 -1
drivers/usb/host/ohci-ppc-soc.c
··· 56 56 if (!hcd) 57 57 return -ENOMEM; 58 58 hcd->rsrc_start = res->start; 59 - hcd->rsrc_len = res->end - res->start + 1; 59 + hcd->rsrc_len = resource_size(res); 60 60 61 61 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { 62 62 pr_debug("%s: request_mem_region failed\n", __FILE__);
+1 -1
drivers/usb/host/ohci-sa1111.c
··· 131 131 if (!hcd) 132 132 return -ENOMEM; 133 133 hcd->rsrc_start = dev->res.start; 134 - hcd->rsrc_len = dev->res.end - dev->res.start + 1; 134 + hcd->rsrc_len = resource_size(&dev->res); 135 135 136 136 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { 137 137 dbg("request_mem_region failed");
+5 -6
drivers/usb/host/ohci-sm501.c
··· 103 103 goto err0; 104 104 } 105 105 106 - if (!request_mem_region(mem->start, mem->end - mem->start + 1, 107 - pdev->name)) { 106 + if (!request_mem_region(mem->start, resource_size(mem), pdev->name)) { 108 107 dev_err(dev, "request_mem_region failed\n"); 109 108 retval = -EBUSY; 110 109 goto err0; ··· 125 126 126 127 if (!dma_declare_coherent_memory(dev, mem->start, 127 128 mem->start - mem->parent->start, 128 - (mem->end - mem->start) + 1, 129 + resource_size(mem), 129 130 DMA_MEMORY_MAP | 130 131 DMA_MEMORY_EXCLUSIVE)) { 131 132 dev_err(dev, "cannot declare coherent memory\n"); ··· 148 149 } 149 150 150 151 hcd->rsrc_start = res->start; 151 - hcd->rsrc_len = res->end - res->start + 1; 152 + hcd->rsrc_len = resource_size(res); 152 153 153 154 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, pdev->name)) { 154 155 dev_err(dev, "request_mem_region failed\n"); ··· 184 185 err2: 185 186 dma_release_declared_memory(dev); 186 187 err1: 187 - release_mem_region(mem->start, mem->end - mem->start + 1); 188 + release_mem_region(mem->start, resource_size(mem)); 188 189 err0: 189 190 return retval; 190 191 } ··· 200 201 dma_release_declared_memory(&pdev->dev); 201 202 mem = platform_get_resource(pdev, IORESOURCE_MEM, 1); 202 203 if (mem) 203 - release_mem_region(mem->start, mem->end - mem->start + 1); 204 + release_mem_region(mem->start, resource_size(mem)); 204 205 205 206 /* mask interrupts and disable power */ 206 207
+1 -1
drivers/usb/host/ohci-ssb.c
··· 2 2 * Sonics Silicon Backplane 3 3 * Broadcom USB-core OHCI driver 4 4 * 5 - * Copyright 2007 Michael Buesch <mb@bu3sch.de> 5 + * Copyright 2007 Michael Buesch <m@bues.ch> 6 6 * 7 7 * Derived from the OHCI-PCI driver 8 8 * Copyright 1999 Roman Weissgaerber
+3 -3
drivers/usb/host/ohci-tmio.c
··· 208 208 } 209 209 210 210 hcd->rsrc_start = regs->start; 211 - hcd->rsrc_len = regs->end - regs->start + 1; 211 + hcd->rsrc_len = resource_size(regs); 212 212 213 213 tmio = hcd_to_tmio(hcd); 214 214 215 215 spin_lock_init(&tmio->lock); 216 216 217 - tmio->ccr = ioremap(config->start, config->end - config->start + 1); 217 + tmio->ccr = ioremap(config->start, resource_size(config)); 218 218 if (!tmio->ccr) { 219 219 ret = -ENOMEM; 220 220 goto err_ioremap_ccr; ··· 228 228 229 229 if (!dma_declare_coherent_memory(&dev->dev, sram->start, 230 230 sram->start, 231 - sram->end - sram->start + 1, 231 + resource_size(sram), 232 232 DMA_MEMORY_MAP | DMA_MEMORY_EXCLUSIVE)) { 233 233 ret = -EBUSY; 234 234 goto err_dma_declare;
+1 -1
drivers/usb/host/oxu210hp-hcd.c
··· 3828 3828 return -ENODEV; 3829 3829 } 3830 3830 memstart = res->start; 3831 - memlen = res->end - res->start + 1; 3831 + memlen = resource_size(res); 3832 3832 dev_dbg(&pdev->dev, "MEM resource %lx-%lx\n", memstart, memlen); 3833 3833 if (!request_mem_region(memstart, memlen, 3834 3834 oxu_hc_driver.description)) {
+1 -1
drivers/usb/host/uhci-grlib.c
··· 111 111 return -ENOMEM; 112 112 113 113 hcd->rsrc_start = res.start; 114 - hcd->rsrc_len = res.end - res.start + 1; 114 + hcd->rsrc_len = resource_size(&res); 115 115 116 116 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { 117 117 printk(KERN_ERR "%s: request_mem_region failed\n", __FILE__);
+1 -1
drivers/usb/host/whci/init.c
··· 178 178 if (whc->qset_pool) 179 179 dma_pool_destroy(whc->qset_pool); 180 180 181 - len = whc->umc->resource.end - whc->umc->resource.start + 1; 181 + len = resource_size(&whc->umc->resource); 182 182 if (whc->base) 183 183 iounmap(whc->base); 184 184 if (whc->base_phys)
+14 -14
drivers/usb/misc/ftdi-elan.c
··· 187 187 u32 controlreg; 188 188 u8 response[4 + 1024]; 189 189 int expected; 190 - int recieved; 190 + int received; 191 191 int ed_found; 192 192 }; 193 193 #define kref_to_usb_ftdi(d) container_of(d, struct usb_ftdi, kref) ··· 353 353 mutex_lock(&ftdi->u132_lock); 354 354 } 355 355 } 356 - ftdi->recieved = 0; 356 + ftdi->received = 0; 357 357 ftdi->expected = 4; 358 358 ftdi->ed_found = 0; 359 359 mutex_unlock(&ftdi->u132_lock); ··· 411 411 } 412 412 } 413 413 } 414 - ftdi->recieved = 0; 414 + ftdi->received = 0; 415 415 ftdi->expected = 4; 416 416 ftdi->ed_found = 0; 417 417 mutex_unlock(&ftdi->u132_lock); ··· 447 447 } 448 448 } 449 449 } 450 - ftdi->recieved = 0; 450 + ftdi->received = 0; 451 451 ftdi->expected = 4; 452 452 ftdi->ed_found = 0; 453 453 mutex_unlock(&ftdi->u132_lock); ··· 874 874 mutex_unlock(&ftdi->u132_lock); 875 875 ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response, 876 876 payload); 877 - ftdi->recieved = 0; 877 + ftdi->received = 0; 878 878 ftdi->expected = 4; 879 879 ftdi->ed_found = 0; 880 880 return ftdi->response; ··· 890 890 mutex_unlock(&ftdi->u132_lock); 891 891 ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response, 892 892 payload); 893 - ftdi->recieved = 0; 893 + ftdi->received = 0; 894 894 ftdi->expected = 4; 895 895 ftdi->ed_found = 0; 896 896 return ftdi->response; ··· 905 905 mutex_unlock(&ftdi->u132_lock); 906 906 ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response, 907 907 payload); 908 - ftdi->recieved = 0; 908 + ftdi->received = 0; 909 909 ftdi->expected = 4; 910 910 ftdi->ed_found = 0; 911 911 return ftdi->response; ··· 914 914 mutex_unlock(&ftdi->u132_lock); 915 915 ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response, 916 916 payload); 917 - ftdi->recieved = 0; 917 + ftdi->received = 0; 918 918 ftdi->expected = 4; 919 919 ftdi->ed_found = 0; 920 920 return ftdi->response; ··· 934 934 if (target->active) 935 935 ftdi_elan_do_callback(ftdi, target, NULL, 0); 936 936 target->abandoning = 0; 937 - ftdi->recieved = 0; 937 + ftdi->received = 0; 938 938 ftdi->expected = 4; 939 939 ftdi->ed_found = 0; 940 940 return ftdi->response; ··· 951 951 */ 952 952 static int ftdi_elan_respond_engine(struct usb_ftdi *ftdi) 953 953 { 954 - u8 *b = ftdi->response + ftdi->recieved; 954 + u8 *b = ftdi->response + ftdi->received; 955 955 int bytes_read = 0; 956 956 int retry_on_empty = 1; 957 957 int retry_on_timeout = 3; ··· 1043 1043 u8 c = ftdi->bulk_in_buffer[++ftdi->bulk_in_last]; 1044 1044 bytes_read += 1; 1045 1045 ftdi->bulk_in_left -= 1; 1046 - if (ftdi->recieved == 0 && c == 0xFF) { 1046 + if (ftdi->received == 0 && c == 0xFF) { 1047 1047 goto have; 1048 1048 } else 1049 1049 *b++ = c; 1050 - if (++ftdi->recieved < ftdi->expected) { 1050 + if (++ftdi->received < ftdi->expected) { 1051 1051 goto have; 1052 1052 } else if (ftdi->ed_found) { 1053 1053 int ed_number = (ftdi->response[0] >> 5) & 0x03; ··· 1069 1069 } 1070 1070 ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response, 1071 1071 payload); 1072 - ftdi->recieved = 0; 1072 + ftdi->received = 0; 1073 1073 ftdi->expected = 4; 1074 1074 ftdi->ed_found = 0; 1075 1075 b = ftdi->response; ··· 1089 1089 *respond->value = data; 1090 1090 *respond->result = 0; 1091 1091 complete(&respond->wait_completion); 1092 - ftdi->recieved = 0; 1092 + ftdi->received = 0; 1093 1093 ftdi->expected = 4; 1094 1094 ftdi->ed_found = 0; 1095 1095 b = ftdi->response;
+1 -1
drivers/usb/musb/musb_core.c
··· 1955 1955 * - initializes musb->xceiv, usually by otg_get_transceiver() 1956 1956 * - stops powering VBUS 1957 1957 * 1958 - * There are various transciever configurations. Blackfin, 1958 + * There are various transceiver configurations. Blackfin, 1959 1959 * DaVinci, TUSB60x0, and others integrate them. OMAP3 uses 1960 1960 * external/discrete ones in various flavors (twl4030 family, 1961 1961 * isp1504, non-OTG, etc) mostly hooking up through ULPI.
+2 -2
drivers/usb/otg/isp1301_omap.c
··· 660 660 int ret = IRQ_NONE; 661 661 struct isp1301 *isp = _isp; 662 662 663 - /* update ISP1301 transciever from OTG controller */ 663 + /* update ISP1301 transceiver from OTG controller */ 664 664 if (otg_irq & OPRT_CHG) { 665 665 omap_writew(OPRT_CHG, OTG_IRQ_SRC); 666 666 isp1301_defer_work(isp, WORK_UPDATE_ISP); ··· 755 755 omap_writew(A_VBUS_ERR, OTG_IRQ_SRC); 756 756 ret = IRQ_HANDLED; 757 757 758 - /* switch driver; the transciever code activates it, 758 + /* switch driver; the transceiver code activates it, 759 759 * ungating the udc clock or resuming OHCI. 760 760 */ 761 761 } else if (otg_irq & DRIVER_SWITCH) {
-1
drivers/usb/otg/otg_fsm.c
··· 28 28 #include <linux/usb.h> 29 29 #include <linux/usb/gadget.h> 30 30 #include <linux/usb/otg.h> 31 - #include <linux/types.h> 32 31 33 32 #include "otg_fsm.h" 34 33
+1 -1
drivers/usb/otg/twl4030-usb.c
··· 166 166 }; 167 167 168 168 /* internal define on top of container_of */ 169 - #define xceiv_to_twl(x) container_of((x), struct twl4030_usb, otg); 169 + #define xceiv_to_twl(x) container_of((x), struct twl4030_usb, otg) 170 170 171 171 /*-------------------------------------------------------------------------*/ 172 172
+1 -1
drivers/uwb/uwbd.c
··· 256 256 * UWB Daemon 257 257 * 258 258 * Listens to all UWB notifications and takes care to track the state 259 - * of the UWB neighboorhood for the kernel. When we do a run, we 259 + * of the UWB neighbourhood for the kernel. When we do a run, we 260 260 * spinlock, move the list to a private copy and release the 261 261 * lock. Hold it as little as possible. Not a conflict: it is 262 262 * guaranteed we own the events in the private list.
+1 -1
drivers/uwb/whc-rc.c
··· 222 222 struct umc_dev *umc_dev = whcrc->umc_dev; 223 223 224 224 whcrc->area = umc_dev->resource.start; 225 - whcrc->rc_len = umc_dev->resource.end - umc_dev->resource.start + 1; 225 + whcrc->rc_len = resource_size(&umc_dev->resource); 226 226 result = -EBUSY; 227 227 if (request_mem_region(whcrc->area, whcrc->rc_len, KBUILD_MODNAME) == NULL) { 228 228 dev_err(dev, "can't request URC region (%zu bytes @ 0x%lx): %d\n",
+2 -2
drivers/video/atmel_lcdfb.c
··· 906 906 if (map) { 907 907 /* use a pre-allocated memory buffer */ 908 908 info->fix.smem_start = map->start; 909 - info->fix.smem_len = map->end - map->start + 1; 909 + info->fix.smem_len = resource_size(map); 910 910 if (!request_mem_region(info->fix.smem_start, 911 911 info->fix.smem_len, pdev->name)) { 912 912 ret = -EBUSY; ··· 932 932 933 933 /* LCDC registers */ 934 934 info->fix.mmio_start = regs->start; 935 - info->fix.mmio_len = regs->end - regs->start + 1; 935 + info->fix.mmio_len = resource_size(regs); 936 936 937 937 if (!request_mem_region(info->fix.mmio_start, 938 938 info->fix.mmio_len, pdev->name)) {
+4 -3
drivers/video/aty/atyfb_base.c
··· 3458 3458 3459 3459 raddr = addr + 0x7ff000UL; 3460 3460 rrp = &pdev->resource[2]; 3461 - if ((rrp->flags & IORESOURCE_MEM) && request_mem_region(rrp->start, rrp->end - rrp->start + 1, "atyfb")) { 3461 + if ((rrp->flags & IORESOURCE_MEM) && 3462 + request_mem_region(rrp->start, resource_size(rrp), "atyfb")) { 3462 3463 par->aux_start = rrp->start; 3463 - par->aux_size = rrp->end - rrp->start + 1; 3464 + par->aux_size = resource_size(rrp); 3464 3465 raddr = rrp->start; 3465 3466 PRINTKI("using auxiliary register aperture\n"); 3466 3467 } ··· 3551 3550 3552 3551 /* Reserve space */ 3553 3552 res_start = rp->start; 3554 - res_size = rp->end - rp->start + 1; 3553 + res_size = resource_size(rp); 3555 3554 if (!request_mem_region(res_start, res_size, "atyfb")) 3556 3555 return -EBUSY; 3557 3556
+1 -1
drivers/video/au1100fb.c
··· 486 486 } 487 487 488 488 au1100fb_fix.mmio_start = regs_res->start; 489 - au1100fb_fix.mmio_len = regs_res->end - regs_res->start + 1; 489 + au1100fb_fix.mmio_len = resource_size(regs_res); 490 490 491 491 if (!request_mem_region(au1100fb_fix.mmio_start, au1100fb_fix.mmio_len, 492 492 DRIVER_NAME)) {
+1 -1
drivers/video/cobalt_lcdfb.c
··· 303 303 return -EBUSY; 304 304 } 305 305 306 - info->screen_size = res->end - res->start + 1; 306 + info->screen_size = resource_size(res); 307 307 info->screen_base = ioremap(res->start, info->screen_size); 308 308 info->fbops = &cobalt_lcd_fbops; 309 309 info->fix = cobalt_lcdfb_fix;
+2 -2
drivers/video/controlfb.c
··· 709 709 710 710 /* Map in frame buffer and registers */ 711 711 p->fb_orig_base = fb_res.start; 712 - p->fb_orig_size = fb_res.end - fb_res.start + 1; 712 + p->fb_orig_size = resource_size(&fb_res); 713 713 /* use the big-endian aperture (??) */ 714 714 p->frame_buffer_phys = fb_res.start + 0x800000; 715 715 p->control_regs_phys = reg_res.start; 716 - p->control_regs_size = reg_res.end - reg_res.start + 1; 716 + p->control_regs_size = resource_size(&reg_res); 717 717 718 718 if (!p->fb_orig_base || 719 719 !request_mem_region(p->fb_orig_base,p->fb_orig_size,"controlfb")) {
+2 -2
drivers/video/ep93xx-fb.c
··· 4 4 * Framebuffer support for the EP93xx series. 5 5 * 6 6 * Copyright (C) 2007 Bluewater Systems Ltd 7 - * Author: Ryan Mallon <ryan@bluewatersys.com> 7 + * Author: Ryan Mallon 8 8 * 9 9 * Copyright (c) 2009 H Hartley Sweeten <hsweeten@visionengravers.com> 10 10 * ··· 644 644 645 645 MODULE_DESCRIPTION("EP93XX Framebuffer Driver"); 646 646 MODULE_ALIAS("platform:ep93xx-fb"); 647 - MODULE_AUTHOR("Ryan Mallon <ryan&bluewatersys.com>, " 647 + MODULE_AUTHOR("Ryan Mallon, " 648 648 "H Hartley Sweeten <hsweeten@visionengravers.com"); 649 649 MODULE_LICENSE("GPL");
+1 -1
drivers/video/i810/i810.h
··· 137 137 #define DRAM_ON 0x08 138 138 #define DRAM_OFF 0xE7 139 139 #define PG_ENABLE_MASK 0x01 140 - #define RING_SIZE_MASK (RINGBUFFER_SIZE - 1); 140 + #define RING_SIZE_MASK (RINGBUFFER_SIZE - 1) 141 141 142 142 /* defines for restoring registers partially */ 143 143 #define ADDR_MAP_MASK (0x07 << 5)
+2 -2
drivers/video/mb862xx/mb862xxfbdrv.c
··· 697 697 goto fbrel; 698 698 } 699 699 700 - res_size = 1 + res.end - res.start; 700 + res_size = resource_size(&res); 701 701 par->res = request_mem_region(res.start, res_size, DRV_NAME); 702 702 if (par->res == NULL) { 703 703 dev_err(dev, "Cannot claim framebuffer/mmio\n"); ··· 787 787 { 788 788 struct fb_info *fbi = dev_get_drvdata(&ofdev->dev); 789 789 struct mb862xxfb_par *par = fbi->par; 790 - resource_size_t res_size = 1 + par->res->end - par->res->start; 790 + resource_size_t res_size = resource_size(par->res); 791 791 unsigned long reg; 792 792 793 793 dev_dbg(fbi->dev, "%s release\n", fbi->fix.id);
+1 -2
drivers/video/msm/mdp.c
··· 406 406 goto error_get_irq; 407 407 } 408 408 409 - mdp->base = ioremap(resource->start, 410 - resource->end - resource->start); 409 + mdp->base = ioremap(resource->start, resource_size(resource)); 411 410 if (mdp->base == 0) { 412 411 printk(KERN_ERR "msmfb: cannot allocate mdp regs!\n"); 413 412 ret = -ENOMEM;
+3 -4
drivers/video/msm/msm_fb.c
··· 525 525 return -ENOMEM; 526 526 } 527 527 fb->fix.smem_start = resource->start; 528 - fb->fix.smem_len = resource->end - resource->start; 529 - fbram = ioremap(resource->start, 530 - resource->end - resource->start); 531 - if (fbram == 0) { 528 + fb->fix.smem_len = resource_size(resource); 529 + fbram = ioremap(resource->start, resource_size(resource)); 530 + if (fbram == NULL) { 532 531 printk(KERN_ERR "msmfb: cannot allocate fbram!\n"); 533 532 return -ENOMEM; 534 533 }
+1 -1
drivers/video/nuc900fb.c
··· 551 551 552 552 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 553 553 554 - size = (res->end - res->start) + 1; 554 + size = resource_size(res); 555 555 fbi->mem = request_mem_region(res->start, size, pdev->name); 556 556 if (fbi->mem == NULL) { 557 557 dev_err(&pdev->dev, "failed to alloc memory region\n");
+2 -3
drivers/video/platinumfb.c
··· 567 567 * northbridge and that can fail. Only request framebuffer 568 568 */ 569 569 if (!request_mem_region(pinfo->rsrc_fb.start, 570 - pinfo->rsrc_fb.end - pinfo->rsrc_fb.start + 1, 570 + resource_size(&pinfo->rsrc_fb), 571 571 "platinumfb framebuffer")) { 572 572 printk(KERN_ERR "platinumfb: Can't request framebuffer !\n"); 573 573 framebuffer_release(info); ··· 658 658 iounmap(pinfo->cmap_regs); 659 659 660 660 release_mem_region(pinfo->rsrc_fb.start, 661 - pinfo->rsrc_fb.end - 662 - pinfo->rsrc_fb.start + 1); 661 + resource_size(&pinfo->rsrc_fb)); 663 662 664 663 release_mem_region(pinfo->cmap_regs_phys, 0x1000); 665 664
+1 -1
drivers/video/pxa168fb.c
··· 662 662 info->fix.ypanstep = 0; 663 663 info->fix.ywrapstep = 0; 664 664 info->fix.mmio_start = res->start; 665 - info->fix.mmio_len = res->end - res->start + 1; 665 + info->fix.mmio_len = resource_size(res); 666 666 info->fix.accel = FB_ACCEL_NONE; 667 667 info->fbops = &pxa168fb_ops; 668 668 info->pseudo_palette = fbi->pseudo_palette;
-1
drivers/video/udlfb.c
··· 29 29 #include <linux/slab.h> 30 30 #include <linux/prefetch.h> 31 31 #include <linux/delay.h> 32 - #include <linux/prefetch.h> 33 32 #include <video/udlfb.h> 34 33 #include "edid.h" 35 34
+2 -2
drivers/video/via/viafbdev.c
··· 2016 2016 int __init viafb_init(void) 2017 2017 { 2018 2018 u32 dummy_x, dummy_y; 2019 - int r; 2019 + int r = 0; 2020 2020 2021 2021 if (machine_is_olpc()) 2022 2022 /* Apply XO-1.5-specific configuration. */ ··· 2039 2039 printk(KERN_INFO 2040 2040 "VIA Graphics Integration Chipset framebuffer %d.%d initializing\n", 2041 2041 VERSION_MAJOR, VERSION_MINOR); 2042 - return 0; 2042 + return r; 2043 2043 } 2044 2044 2045 2045 void __exit viafb_exit(void)
+1 -1
fs/ecryptfs/keystore.c
··· 2248 2248 auth_tok->token.password.session_key_encryption_key, 2249 2249 crypt_stat->key_size); 2250 2250 ecryptfs_printk(KERN_DEBUG, 2251 - "Cached session key " "encryption key: \n"); 2251 + "Cached session key encryption key:\n"); 2252 2252 if (ecryptfs_verbosity > 0) 2253 2253 ecryptfs_dump_hex(session_key_encryption_key, 16); 2254 2254 }
+1 -1
fs/jffs2/readinode.c
··· 1041 1041 /* FIXME: point() */ 1042 1042 err = jffs2_flash_read(c, ref_offset(ref), len, &retlen, buf); 1043 1043 if (err) { 1044 - JFFS2_ERROR("can not read %d bytes from 0x%08x, " "error code: %d.\n", len, ref_offset(ref), err); 1044 + JFFS2_ERROR("can not read %d bytes from 0x%08x, error code: %d.\n", len, ref_offset(ref), err); 1045 1045 goto free_out; 1046 1046 } 1047 1047
+2 -5
fs/nfs/idmap.c
··· 36 36 #include <linux/types.h> 37 37 #include <linux/string.h> 38 38 #include <linux/kernel.h> 39 + #include <linux/slab.h> 40 + #include <linux/nfs_idmap.h> 39 41 40 42 static int nfs_map_string_to_numeric(const char *name, size_t namelen, __u32 *res) 41 43 { ··· 61 59 62 60 #ifdef CONFIG_NFS_USE_NEW_IDMAPPER 63 61 64 - #include <linux/slab.h> 65 62 #include <linux/cred.h> 66 63 #include <linux/sunrpc/sched.h> 67 64 #include <linux/nfs4.h> 68 65 #include <linux/nfs_fs_sb.h> 69 - #include <linux/nfs_idmap.h> 70 66 #include <linux/keyctl.h> 71 67 #include <linux/key-type.h> 72 68 #include <linux/rcupdate.h> ··· 284 284 #include <linux/module.h> 285 285 #include <linux/mutex.h> 286 286 #include <linux/init.h> 287 - #include <linux/slab.h> 288 287 #include <linux/socket.h> 289 288 #include <linux/in.h> 290 289 #include <linux/sched.h> 291 - 292 290 #include <linux/sunrpc/clnt.h> 293 291 #include <linux/workqueue.h> 294 292 #include <linux/sunrpc/rpc_pipe_fs.h> 295 293 296 294 #include <linux/nfs_fs.h> 297 295 298 - #include <linux/nfs_idmap.h> 299 296 #include "nfs4_fs.h" 300 297 301 298 #define IDMAP_HASH_SZ 128
-1
fs/ocfs2/move_extents.c
··· 36 36 #include "dir.h" 37 37 #include "buffer_head_io.h" 38 38 #include "sysfile.h" 39 - #include "suballoc.h" 40 39 #include "refcounttree.h" 41 40 #include "move_extents.h" 42 41
+1 -1
fs/xfs/xfs_dir2_node.c
··· 1564 1564 1565 1565 if (unlikely(xfs_dir2_db_to_fdb(mp, dbno) != fbno)) { 1566 1566 xfs_alert(mp, 1567 - "%s: dir ino " "%llu needed freesp block %lld for\n" 1567 + "%s: dir ino %llu needed freesp block %lld for\n" 1568 1568 " data block %lld, got %lld ifbno %llu lastfbno %d", 1569 1569 __func__, (unsigned long long)dp->i_ino, 1570 1570 (long long)xfs_dir2_db_to_fdb(mp, dbno),
+1 -1
include/linux/ceph/libceph.h
··· 35 35 #define CEPH_OPT_MYIP (1<<2) /* specified my ip */ 36 36 #define CEPH_OPT_NOCRC (1<<3) /* no data crc on writes */ 37 37 38 - #define CEPH_OPT_DEFAULT (0); 38 + #define CEPH_OPT_DEFAULT (0) 39 39 40 40 #define ceph_set_opt(client, opt) \ 41 41 (client)->options->flags |= CEPH_OPT_##opt;
-1
include/linux/cgroup.h
··· 539 539 */ 540 540 #define task_subsys_state_check(task, subsys_id, __c) \ 541 541 rcu_dereference_check(task->cgroups->subsys[subsys_id], \ 542 - rcu_read_lock_held() || \ 543 542 lockdep_is_held(&task->alloc_lock) || \ 544 543 cgroup_lock_is_held() || (__c)) 545 544
-1
include/linux/cred.h
··· 284 284 ({ \ 285 285 const struct task_struct *__t = (task); \ 286 286 rcu_dereference_check(__t->real_cred, \ 287 - rcu_read_lock_held() || \ 288 287 task_is_dead(__t)); \ 289 288 }) 290 289
+1 -1
include/linux/dio.h
··· 254 254 255 255 #define dio_resource_start(d) ((d)->resource.start) 256 256 #define dio_resource_end(d) ((d)->resource.end) 257 - #define dio_resource_len(d) ((d)->resource.end-(d)->resource.start+1) 257 + #define dio_resource_len(d) (resource_size(&(d)->resource)) 258 258 #define dio_resource_flags(d) ((d)->resource.flags) 259 259 260 260 #define dio_request_device(d, name) \
-1
include/linux/fdtable.h
··· 60 60 61 61 #define rcu_dereference_check_fdtable(files, fdtfd) \ 62 62 (rcu_dereference_check((fdtfd), \ 63 - rcu_read_lock_held() || \ 64 63 lockdep_is_held(&(files)->file_lock) || \ 65 64 atomic_read(&(files)->count) == 1 || \ 66 65 rcu_my_thread_group_empty()))
-1
include/linux/fs.h
··· 379 379 380 380 #include <linux/linkage.h> 381 381 #include <linux/wait.h> 382 - #include <linux/types.h> 383 382 #include <linux/kdev_t.h> 384 383 #include <linux/dcache.h> 385 384 #include <linux/path.h>
+1 -1
include/linux/hw_random.h
··· 25 25 * there is always data available. *OBSOLETE* 26 26 * @data_read: Read data from the RNG device. 27 27 * Returns the number of lower random bytes in "data". 28 - * Must not be NULL. *OSOLETE* 28 + * Must not be NULL. *OBSOLETE* 29 29 * @read: New API. drivers can fill up to max bytes of data 30 30 * into the buffer. The buffer is aligned for any type. 31 31 * @priv: Private data, for use by the RNG driver.
+1 -1
include/linux/mfd/tps65910.h
··· 269 269 #define LDO1_SEL_MASK 0xFC 270 270 #define LDO3_SEL_MASK 0x7C 271 271 #define LDO_MIN_VOLT 1000 272 - #define LDO_MAX_VOLT 3300; 272 + #define LDO_MAX_VOLT 3300 273 273 274 274 275 275 /*Register VDIG1 (0x80) register.RegisterDescription */
+1 -1
include/linux/nl80211.h
··· 6 6 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 7 7 * Copyright 2008 Michael Wu <flamingice@sourmilk.net> 8 8 * Copyright 2008 Luis Carlos Cobo <luisca@cozybit.com> 9 - * Copyright 2008 Michael Buesch <mb@bu3sch.de> 9 + * Copyright 2008 Michael Buesch <m@bues.ch> 10 10 * Copyright 2008, 2009 Luis R. Rodriguez <lrodriguez@atheros.com> 11 11 * Copyright 2008 Jouni Malinen <jouni.malinen@atheros.com> 12 12 * Copyright 2008 Colin McCabe <colin@cozybit.com>
+1 -1
include/linux/pnp.h
··· 50 50 { 51 51 if (res->start == 0 && res->end == 0) 52 52 return 0; 53 - return res->end - res->start + 1; 53 + return resource_size(res); 54 54 } 55 55 56 56
+1 -2
include/linux/rtnetlink.h
··· 760 760 * or RTNL. Note : Please prefer rtnl_dereference() or rcu_dereference() 761 761 */ 762 762 #define rcu_dereference_rtnl(p) \ 763 - rcu_dereference_check(p, rcu_read_lock_held() || \ 764 - lockdep_rtnl_is_held()) 763 + rcu_dereference_check(p, lockdep_rtnl_is_held()) 765 764 766 765 /** 767 766 * rtnl_dereference - fetch RCU pointer when updates are prevented by RTNL
+1 -1
include/linux/ssb/ssb_driver_chipcommon.h
··· 8 8 * gpio interface, extbus, and support for serial and parallel flashes. 9 9 * 10 10 * Copyright 2005, Broadcom Corporation 11 - * Copyright 2006, Michael Buesch <mb@bu3sch.de> 11 + * Copyright 2006, Michael Buesch <m@bues.ch> 12 12 * 13 13 * Licensed under the GPL version 2. See COPYING for details. 14 14 */
+1 -1
include/linux/stop_machine.h
··· 94 94 * stop_machine "Bogolock": stop the entire machine, disable 95 95 * interrupts. This is a very heavy lock, which is equivalent to 96 96 * grabbing every spinlock (and more). So the "read" side to such a 97 - * lock is anything which disables preeempt. 97 + * lock is anything which disables preemption. 98 98 */ 99 99 #if defined(CONFIG_STOP_MACHINE) && defined(CONFIG_SMP) 100 100
+1 -1
include/linux/zorro.h
··· 187 187 188 188 #define zorro_resource_start(z) ((z)->resource.start) 189 189 #define zorro_resource_end(z) ((z)->resource.end) 190 - #define zorro_resource_len(z) ((z)->resource.end-(z)->resource.start+1) 190 + #define zorro_resource_len(z) (resource_size(&(z)->resource)) 191 191 #define zorro_resource_flags(z) ((z)->resource.flags) 192 192 193 193 #define zorro_request_device(z, name) \
+1 -2
include/net/sock.h
··· 1303 1303 static inline struct dst_entry * 1304 1304 __sk_dst_get(struct sock *sk) 1305 1305 { 1306 - return rcu_dereference_check(sk->sk_dst_cache, rcu_read_lock_held() || 1307 - sock_owned_by_user(sk) || 1306 + return rcu_dereference_check(sk->sk_dst_cache, sock_owned_by_user(sk) || 1308 1307 lockdep_is_held(&sk->sk_lock.slock)); 1309 1308 } 1310 1309
+1 -1
include/scsi/osd_initiator.h
··· 262 262 * osd_req_decode_sense_full - Decode sense information after execution. 263 263 * 264 264 * @or: - osd_request to examine 265 - * @osi - Recievs a more detailed error report information (optional). 265 + * @osi - Receives a more detailed error report information (optional). 266 266 * @silent - Do not print to dmsg (Even if enabled) 267 267 * @bad_obj_list - Some commands act on multiple objects. Failed objects will 268 268 * be received here (optional)
+1 -1
include/scsi/scsi.h
··· 495 495 496 496 #define sense_class(sense) (((sense) >> 4) & 0x7) 497 497 #define sense_error(sense) ((sense) & 0xf) 498 - #define sense_valid(sense) ((sense) & 0x80); 498 + #define sense_valid(sense) ((sense) & 0x80) 499 499 500 500 /* 501 501 * default timeouts
+1 -1
include/sound/soundfont.h
··· 121 121 int snd_sf_calc_parm_hold(int msec); 122 122 int snd_sf_calc_parm_attack(int msec); 123 123 int snd_sf_calc_parm_decay(int msec); 124 - #define snd_sf_calc_parm_delay(msec) (0x8000 - (msec) * 1000 / 725); 124 + #define snd_sf_calc_parm_delay(msec) (0x8000 - (msec) * 1000 / 725) 125 125 extern int snd_sf_vol_table[128]; 126 126 int snd_sf_linear_to_log(unsigned int amount, int offset, int ratio); 127 127
+2 -6
kernel/cgroup.c
··· 1697 1697 { 1698 1698 char *start; 1699 1699 struct dentry *dentry = rcu_dereference_check(cgrp->dentry, 1700 - rcu_read_lock_held() || 1701 1700 cgroup_lock_is_held()); 1702 1701 1703 1702 if (!dentry || cgrp == dummytop) { ··· 1722 1723 break; 1723 1724 1724 1725 dentry = rcu_dereference_check(cgrp->dentry, 1725 - rcu_read_lock_held() || 1726 1726 cgroup_lock_is_held()); 1727 1727 if (!cgrp->parent) 1728 1728 continue; ··· 4812 4814 * on this or this is under rcu_read_lock(). Once css->id is allocated, 4813 4815 * it's unchanged until freed. 4814 4816 */ 4815 - cssid = rcu_dereference_check(css->id, 4816 - rcu_read_lock_held() || atomic_read(&css->refcnt)); 4817 + cssid = rcu_dereference_check(css->id, atomic_read(&css->refcnt)); 4817 4818 4818 4819 if (cssid) 4819 4820 return cssid->id; ··· 4824 4827 { 4825 4828 struct css_id *cssid; 4826 4829 4827 - cssid = rcu_dereference_check(css->id, 4828 - rcu_read_lock_held() || atomic_read(&css->refcnt)); 4830 + cssid = rcu_dereference_check(css->id, atomic_read(&css->refcnt)); 4829 4831 4830 4832 if (cssid) 4831 4833 return cssid->depth;
-1
kernel/exit.c
··· 85 85 struct tty_struct *uninitialized_var(tty); 86 86 87 87 sighand = rcu_dereference_check(tsk->sighand, 88 - rcu_read_lock_held() || 89 88 lockdep_tasklist_lock_is_held()); 90 89 spin_lock(&sighand->siglock); 91 90
+1 -1
kernel/kexec.c
··· 1095 1095 size_t size = 0; 1096 1096 mutex_lock(&kexec_mutex); 1097 1097 if (crashk_res.end != crashk_res.start) 1098 - size = crashk_res.end - crashk_res.start + 1; 1098 + size = resource_size(&crashk_res); 1099 1099 mutex_unlock(&kexec_mutex); 1100 1100 return size; 1101 1101 }
-1
kernel/pid.c
··· 405 405 if (pid) { 406 406 struct hlist_node *first; 407 407 first = rcu_dereference_check(hlist_first_rcu(&pid->tasks[type]), 408 - rcu_read_lock_held() || 409 408 lockdep_tasklist_lock_is_held()); 410 409 if (first) 411 410 result = hlist_entry(first, struct task_struct, pids[(type)].node);
+2 -2
kernel/power/Kconfig
··· 193 193 notification of APM "events" (e.g. battery status change). 194 194 195 195 In order to use APM, you will need supporting software. For location 196 - and more information, read <file:Documentation/power/pm.txt> and the 197 - Battery Powered Linux mini-HOWTO, available from 196 + and more information, read <file:Documentation/power/apm-acpi.txt> 197 + and the Battery Powered Linux mini-HOWTO, available from 198 198 <http://www.tldp.org/docs.html#howto>. 199 199 200 200 This driver does not spin down disk drives (see the hdparm(8)
-2
kernel/rcutorture.c
··· 941 941 idx = cur_ops->readlock(); 942 942 completed = cur_ops->completed(); 943 943 p = rcu_dereference_check(rcu_torture_current, 944 - rcu_read_lock_held() || 945 944 rcu_read_lock_bh_held() || 946 945 rcu_read_lock_sched_held() || 947 946 srcu_read_lock_held(&srcu_ctl)); ··· 1001 1002 idx = cur_ops->readlock(); 1002 1003 completed = cur_ops->completed(); 1003 1004 p = rcu_dereference_check(rcu_torture_current, 1004 - rcu_read_lock_held() || 1005 1005 rcu_read_lock_bh_held() || 1006 1006 rcu_read_lock_sched_held() || 1007 1007 srcu_read_lock_held(&srcu_ctl));
-1
kernel/sched.c
··· 590 590 591 591 #define rcu_dereference_check_sched_domain(p) \ 592 592 rcu_dereference_check((p), \ 593 - rcu_read_lock_held() || \ 594 593 lockdep_is_held(&sched_domains_mutex)) 595 594 596 595 /*
+1 -2
lib/vsprintf.c
··· 1149 1149 * %pi4 print an IPv4 address with leading zeros 1150 1150 * %pI6 print an IPv6 address with colons 1151 1151 * %pi6 print an IPv6 address without colons 1152 - * %pI6c print an IPv6 address as specified by 1153 - * http://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-00 1152 + * %pI6c print an IPv6 address as specified by RFC 5952 1154 1153 * %pU[bBlL] print a UUID/GUID in big or little endian using lower or upper 1155 1154 * case. 1156 1155 * %n is ignored
+1 -1
mm/Kconfig
··· 356 356 for clean pages that the kernel's pageframe replacement algorithm 357 357 (PFRA) would like to keep around, but can't since there isn't enough 358 358 memory. So when the PFRA "evicts" a page, it first attempts to use 359 - cleancacne code to put the data contained in that page into 359 + cleancache code to put the data contained in that page into 360 360 "transcendent memory", memory that is not directly accessible or 361 361 addressable by the kernel and is of unknown and possibly 362 362 time-varying size. And when a cleancache-enabled
+1 -1
mm/slub.c
··· 4159 4159 #endif 4160 4160 4161 4161 #define to_slab_attr(n) container_of(n, struct slab_attribute, attr) 4162 - #define to_slab(n) container_of(n, struct kmem_cache, kobj); 4162 + #define to_slab(n) container_of(n, struct kmem_cache, kobj) 4163 4163 4164 4164 struct slab_attribute { 4165 4165 struct attribute attr;
-1
net/bridge/netfilter/ebt_ulog.c
··· 216 216 nlmsg_failure: 217 217 pr_debug("error during NLMSG_PUT. This should " 218 218 "not happen, please report to author.\n"); 219 - goto unlock; 220 219 alloc_failure: 221 220 goto unlock; 222 221 }
+10 -10
net/mac80211/mesh_hwmp.c
··· 57 57 #define PREQ_IE_TTL(x) (*(x + 2)) 58 58 #define PREQ_IE_PREQ_ID(x) u32_field_get(x, 3, 0) 59 59 #define PREQ_IE_ORIG_ADDR(x) (x + 7) 60 - #define PREQ_IE_ORIG_SN(x) u32_field_get(x, 13, 0); 61 - #define PREQ_IE_LIFETIME(x) u32_field_get(x, 17, AE_F_SET(x)); 62 - #define PREQ_IE_METRIC(x) u32_field_get(x, 21, AE_F_SET(x)); 60 + #define PREQ_IE_ORIG_SN(x) u32_field_get(x, 13, 0) 61 + #define PREQ_IE_LIFETIME(x) u32_field_get(x, 17, AE_F_SET(x)) 62 + #define PREQ_IE_METRIC(x) u32_field_get(x, 21, AE_F_SET(x)) 63 63 #define PREQ_IE_TARGET_F(x) (*(AE_F_SET(x) ? x + 32 : x + 26)) 64 64 #define PREQ_IE_TARGET_ADDR(x) (AE_F_SET(x) ? x + 33 : x + 27) 65 - #define PREQ_IE_TARGET_SN(x) u32_field_get(x, 33, AE_F_SET(x)); 65 + #define PREQ_IE_TARGET_SN(x) u32_field_get(x, 33, AE_F_SET(x)) 66 66 67 67 68 68 #define PREP_IE_FLAGS(x) PREQ_IE_FLAGS(x) 69 69 #define PREP_IE_HOPCOUNT(x) PREQ_IE_HOPCOUNT(x) 70 70 #define PREP_IE_TTL(x) PREQ_IE_TTL(x) 71 71 #define PREP_IE_ORIG_ADDR(x) (x + 3) 72 - #define PREP_IE_ORIG_SN(x) u32_field_get(x, 9, 0); 73 - #define PREP_IE_LIFETIME(x) u32_field_get(x, 13, AE_F_SET(x)); 74 - #define PREP_IE_METRIC(x) u32_field_get(x, 17, AE_F_SET(x)); 72 + #define PREP_IE_ORIG_SN(x) u32_field_get(x, 9, 0) 73 + #define PREP_IE_LIFETIME(x) u32_field_get(x, 13, AE_F_SET(x)) 74 + #define PREP_IE_METRIC(x) u32_field_get(x, 17, AE_F_SET(x)) 75 75 #define PREP_IE_TARGET_ADDR(x) (AE_F_SET(x) ? x + 27 : x + 21) 76 - #define PREP_IE_TARGET_SN(x) u32_field_get(x, 27, AE_F_SET(x)); 76 + #define PREP_IE_TARGET_SN(x) u32_field_get(x, 27, AE_F_SET(x)) 77 77 78 78 #define PERR_IE_TTL(x) (*(x)) 79 79 #define PERR_IE_TARGET_FLAGS(x) (*(x + 2)) 80 80 #define PERR_IE_TARGET_ADDR(x) (x + 3) 81 - #define PERR_IE_TARGET_SN(x) u32_field_get(x, 9, 0); 82 - #define PERR_IE_TARGET_RCODE(x) u16_field_get(x, 13, 0); 81 + #define PERR_IE_TARGET_SN(x) u32_field_get(x, 9, 0) 82 + #define PERR_IE_TARGET_RCODE(x) u16_field_get(x, 13, 0) 83 83 84 84 #define MSEC_TO_TU(x) (x*1000/1024) 85 85 #define SN_GT(x, y) ((long) (y) - (long) (x) < 0)
-4
net/mac80211/sta_info.c
··· 97 97 struct sta_info *sta; 98 98 99 99 sta = rcu_dereference_check(local->sta_hash[STA_HASH(addr)], 100 - rcu_read_lock_held() || 101 100 lockdep_is_held(&local->sta_lock) || 102 101 lockdep_is_held(&local->sta_mtx)); 103 102 while (sta) { ··· 104 105 memcmp(sta->sta.addr, addr, ETH_ALEN) == 0) 105 106 break; 106 107 sta = rcu_dereference_check(sta->hnext, 107 - rcu_read_lock_held() || 108 108 lockdep_is_held(&local->sta_lock) || 109 109 lockdep_is_held(&local->sta_mtx)); 110 110 } ··· 121 123 struct sta_info *sta; 122 124 123 125 sta = rcu_dereference_check(local->sta_hash[STA_HASH(addr)], 124 - rcu_read_lock_held() || 125 126 lockdep_is_held(&local->sta_lock) || 126 127 lockdep_is_held(&local->sta_mtx)); 127 128 while (sta) { ··· 129 132 memcmp(sta->sta.addr, addr, ETH_ALEN) == 0) 130 133 break; 131 134 sta = rcu_dereference_check(sta->hnext, 132 - rcu_read_lock_held() || 133 135 lockdep_is_held(&local->sta_lock) || 134 136 lockdep_is_held(&local->sta_mtx)); 135 137 }
+1 -2
net/netlabel/netlabel_domainhash.c
··· 55 55 * should be okay */ 56 56 static DEFINE_SPINLOCK(netlbl_domhsh_lock); 57 57 #define netlbl_domhsh_rcu_deref(p) \ 58 - rcu_dereference_check(p, rcu_read_lock_held() || \ 59 - lockdep_is_held(&netlbl_domhsh_lock)) 58 + rcu_dereference_check(p, lockdep_is_held(&netlbl_domhsh_lock)) 60 59 static struct netlbl_domhsh_tbl *netlbl_domhsh = NULL; 61 60 static struct netlbl_dom_map *netlbl_domhsh_def = NULL; 62 61
+1 -2
net/netlabel/netlabel_unlabeled.c
··· 116 116 * hash table should be okay */ 117 117 static DEFINE_SPINLOCK(netlbl_unlhsh_lock); 118 118 #define netlbl_unlhsh_rcu_deref(p) \ 119 - rcu_dereference_check(p, rcu_read_lock_held() || \ 120 - lockdep_is_held(&netlbl_unlhsh_lock)) 119 + rcu_dereference_check(p, lockdep_is_held(&netlbl_unlhsh_lock)) 121 120 static struct netlbl_unlhsh_tbl *netlbl_unlhsh = NULL; 122 121 static struct netlbl_unlhsh_iface *netlbl_unlhsh_def = NULL; 123 122
+1 -1
scripts/bootgraph.pl
··· 44 44 my %type; 45 45 my $done = 0; 46 46 my $maxtime = 0; 47 - my $firsttime = 100; 47 + my $firsttime = 99999; 48 48 my $count = 0; 49 49 my %pids; 50 50 my %pidctr;
+5 -12
scripts/docproc.c
··· 205 205 PATH_MAX - strlen(real_filename)); 206 206 sym = add_new_file(filename); 207 207 fp = fopen(real_filename, "r"); 208 - if (fp == NULL) 209 - { 208 + if (fp == NULL) { 210 209 fprintf(stderr, "docproc: "); 211 210 perror(real_filename); 212 211 exit(1); ··· 486 487 default: 487 488 defaultline(line); 488 489 } 489 - } 490 - else { 490 + } else { 491 491 defaultline(line); 492 492 } 493 493 } ··· 517 519 exit(2); 518 520 } 519 521 520 - if (strcmp("doc", argv[1]) == 0) 521 - { 522 + if (strcmp("doc", argv[1]) == 0) { 522 523 /* Need to do this in two passes. 523 524 * First pass is used to collect all symbols exported 524 525 * in the various files; ··· 553 556 fprintf(stderr, "Warning: didn't use docs for %s\n", 554 557 all_list[i]); 555 558 } 556 - } 557 - else if (strcmp("depend", argv[1]) == 0) 558 - { 559 + } else if (strcmp("depend", argv[1]) == 0) { 559 560 /* Create first part of dependency chain 560 561 * file.tmpl */ 561 562 printf("%s\t", argv[2]); ··· 566 571 findall = adddep; 567 572 parse_file(infile); 568 573 printf("\n"); 569 - } 570 - else 571 - { 574 + } else { 572 575 fprintf(stderr, "Unknown option: %s\n", argv[1]); 573 576 exit(1); 574 577 }
+1 -1
scripts/gcc-goto.sh
··· 1 1 #!/bin/sh 2 - # Test for gcc 'asm goto' suport 2 + # Test for gcc 'asm goto' support 3 3 # Copyright (C) 2010, Jason Baron <jbaron@redhat.com> 4 4 5 5 echo "int main(void) { entry: asm goto (\"\"::::entry); return 0; }" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y"
-1
security/keys/keyring.c
··· 155 155 } 156 156 157 157 klist = rcu_dereference_check(keyring->payload.subscriptions, 158 - rcu_read_lock_held() || 159 158 atomic_read(&keyring->usage) == 0); 160 159 if (klist) { 161 160 for (loop = klist->nkeys - 1; loop >= 0; loop--)
+4 -5
sound/aoa/soundbus/i2sbus/core.c
··· 262 262 */ 263 263 dev->allocated_resource[i] = 264 264 request_mem_region(dev->resources[i].start, 265 - dev->resources[i].end - 266 - dev->resources[i].start + 1, 265 + resource_size(&dev->resources[i]), 267 266 dev->rnames[i]); 268 267 if (!dev->allocated_resource[i]) { 269 268 printk(KERN_ERR "i2sbus: failed to claim resource %d!\n", i); ··· 271 272 } 272 273 273 274 r = &dev->resources[aoa_resource_i2smmio]; 274 - rlen = r->end - r->start + 1; 275 + rlen = resource_size(r); 275 276 if (rlen < sizeof(struct i2s_interface_regs)) 276 277 goto err; 277 278 dev->intfregs = ioremap(r->start, rlen); 278 279 279 280 r = &dev->resources[aoa_resource_txdbdma]; 280 - rlen = r->end - r->start + 1; 281 + rlen = resource_size(r); 281 282 if (rlen < sizeof(struct dbdma_regs)) 282 283 goto err; 283 284 dev->out.dbdma = ioremap(r->start, rlen); 284 285 285 286 r = &dev->resources[aoa_resource_rxdbdma]; 286 - rlen = r->end - r->start + 1; 287 + rlen = resource_size(r); 287 288 if (rlen < sizeof(struct dbdma_regs)) 288 289 goto err; 289 290 dev->in.dbdma = ioremap(r->start, rlen);
+1 -1
sound/atmel/abdac.c
··· 448 448 goto out_free_card; 449 449 } 450 450 451 - dac->regs = ioremap(regs->start, regs->end - regs->start + 1); 451 + dac->regs = ioremap(regs->start, resource_size(regs)); 452 452 if (!dac->regs) { 453 453 dev_dbg(&pdev->dev, "could not remap register memory\n"); 454 454 goto out_free_card;
+1 -1
sound/atmel/ac97c.c
··· 971 971 chip->card = card; 972 972 chip->pclk = pclk; 973 973 chip->pdev = pdev; 974 - chip->regs = ioremap(regs->start, regs->end - regs->start + 1); 974 + chip->regs = ioremap(regs->start, resource_size(regs)); 975 975 976 976 if (!chip->regs) { 977 977 dev_dbg(&pdev->dev, "could not remap register memory\n");
+1 -1
sound/pci/ice1712/ice1712.c
··· 87 87 static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;/* Enable this card */ 88 88 static char *model[SNDRV_CARDS]; 89 89 static int omni[SNDRV_CARDS]; /* Delta44 & 66 Omni I/O support */ 90 - static int cs8427_timeout[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = 500}; /* CS8427 S/PDIF transciever reset timeout value in msec */ 90 + static int cs8427_timeout[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = 500}; /* CS8427 S/PDIF transceiver reset timeout value in msec */ 91 91 static int dxr_enable[SNDRV_CARDS]; /* DXR enable for DMX6FIRE */ 92 92 93 93 module_param_array(index, int, NULL, 0444);
+3 -6
sound/ppc/pmac.c
··· 881 881 for (i = 0; i < 3; i++) { 882 882 if (chip->requested & (1 << i)) 883 883 release_mem_region(chip->rsrc[i].start, 884 - chip->rsrc[i].end - 885 - chip->rsrc[i].start + 1); 884 + resource_size(&chip->rsrc[i])); 886 885 } 887 886 } 888 887 ··· 1227 1228 goto __error; 1228 1229 } 1229 1230 if (request_mem_region(chip->rsrc[i].start, 1230 - chip->rsrc[i].end - 1231 - chip->rsrc[i].start + 1, 1231 + resource_size(&chip->rsrc[i]), 1232 1232 rnames[i]) == NULL) { 1233 1233 printk(KERN_ERR "snd: can't request rsrc " 1234 1234 " %d (%s: %pR)\n", ··· 1252 1254 goto __error; 1253 1255 } 1254 1256 if (request_mem_region(chip->rsrc[i].start, 1255 - chip->rsrc[i].end - 1256 - chip->rsrc[i].start + 1, 1257 + resource_size(&chip->rsrc[i]), 1257 1258 rnames[i]) == NULL) { 1258 1259 printk(KERN_ERR "snd: can't request rsrc " 1259 1260 " %d (%s: %pR)\n",
+2 -2
sound/soc/ep93xx/ep93xx-i2s.c
··· 2 2 * linux/sound/soc/ep93xx-i2s.c 3 3 * EP93xx I2S driver 4 4 * 5 - * Copyright (C) 2010 Ryan Mallon <ryan@bluewatersys.com> 5 + * Copyright (C) 2010 Ryan Mallon 6 6 * 7 7 * Based on the original driver by: 8 8 * Copyright (C) 2007 Chase Douglas <chasedouglas@gmail> ··· 477 477 module_exit(ep93xx_i2s_exit); 478 478 479 479 MODULE_ALIAS("platform:ep93xx-i2s"); 480 - MODULE_AUTHOR("Ryan Mallon <ryan@bluewatersys.com>"); 480 + MODULE_AUTHOR("Ryan Mallon"); 481 481 MODULE_DESCRIPTION("EP93XX I2S driver"); 482 482 MODULE_LICENSE("GPL");
+2 -2
sound/soc/ep93xx/ep93xx-pcm.c
··· 5 5 * Copyright (C) 2006 Applied Data Systems 6 6 * 7 7 * Rewritten for the SoC audio subsystem (Based on PXA2xx code): 8 - * Copyright (c) 2008 Ryan Mallon <ryan@bluewatersys.com> 8 + * Copyright (c) 2008 Ryan Mallon 9 9 * 10 10 * This program is free software; you can redistribute it and/or modify 11 11 * it under the terms of the GNU General Public License version 2 as ··· 352 352 module_init(ep93xx_soc_platform_init); 353 353 module_exit(ep93xx_soc_platform_exit); 354 354 355 - MODULE_AUTHOR("Ryan Mallon <ryan@bluewatersys.com>"); 355 + MODULE_AUTHOR("Ryan Mallon"); 356 356 MODULE_DESCRIPTION("EP93xx ALSA PCM interface"); 357 357 MODULE_LICENSE("GPL");
+2 -2
sound/soc/ep93xx/snappercl15.c
··· 2 2 * snappercl15.c -- SoC audio for Bluewater Systems Snapper CL15 module 3 3 * 4 4 * Copyright (C) 2008 Bluewater Systems Ltd 5 - * Author: Ryan Mallon <ryan@bluewatersys.com> 5 + * Author: Ryan Mallon 6 6 * 7 7 * This program is free software; you can redistribute it and/or modify it 8 8 * under the terms of the GNU General Public License as published by the ··· 140 140 module_init(snappercl15_init); 141 141 module_exit(snappercl15_exit); 142 142 143 - MODULE_AUTHOR("Ryan Mallon <ryan@bluewatersys.com>"); 143 + MODULE_AUTHOR("Ryan Mallon"); 144 144 MODULE_DESCRIPTION("ALSA SoC Snapper CL15"); 145 145 MODULE_LICENSE("GPL"); 146 146
+1 -1
sound/soc/fsl/mpc5200_dma.c
··· 385 385 dev_err(&op->dev, "Missing reg property\n"); 386 386 return -ENODEV; 387 387 } 388 - regs = ioremap(res.start, 1 + res.end - res.start); 388 + regs = ioremap(res.start, resource_size(&res)); 389 389 if (!regs) { 390 390 dev_err(&op->dev, "Could not map registers\n"); 391 391 return -ENODEV;
+1 -1
sound/soc/omap/ams-delta.c
··· 330 330 return 0; 331 331 } 332 332 333 - /* Line discipline .recieve_buf() */ 333 + /* Line discipline .receive_buf() */ 334 334 static void cx81801_receive(struct tty_struct *tty, 335 335 const unsigned char *cp, char *fp, int count) 336 336 {