Guennadi Liakhovetski
438d8908b3
gpiolib: better rmmod infrastructure
...
As long as one or more GPIOs on a gpio chip are used its driver should not be
unloaded. The existing mechanism (gpiochip_remove failure) doesn't address
that, since rmmod can no longer be made to fail by having the cleanup code
report errors. Module usecounts are the solution.
Assuming standard "initialize struct to zero" policies, this change won't
affect SOC platform drivers. However, drivers for external chips (on I2C and
SPI busses) should be updated if they can be built as modules.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de>
[ gpio_ensure_requested() needs to update module usecounts too ]
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-28 08:58:34 -07:00
..
acpi
asm-alpha
alpha: teach the compiler that BUG doesn't return
2008-04-28 08:58:27 -07:00
asm-arm
mm: introduce pte_special pte bit
2008-04-28 08:58:23 -07:00
asm-avr32
mm: introduce pte_special pte bit
2008-04-28 08:58:23 -07:00
asm-blackfin
[Blackfin] arch: add include/boot .gitignore files
2008-04-25 08:29:11 +08:00
asm-cris
cris: add constfy to pgd_offset()
2008-04-28 08:58:28 -07:00
asm-frv
mm: introduce pte_special pte bit
2008-04-28 08:58:23 -07:00
asm-generic
gpiolib: better rmmod infrastructure
2008-04-28 08:58:34 -07:00
asm-h8300
asm-ia64
hugetlbfs: common code update for s390
2008-04-28 08:58:25 -07:00
asm-m32r
mm: introduce pte_special pte bit
2008-04-28 08:58:23 -07:00
asm-m68k
mm: introduce pte_special pte bit
2008-04-28 08:58:23 -07:00
asm-m68knommu
asm-mips
serial: add VR41xx SIU setup for serial console
2008-04-28 08:58:30 -07:00
asm-mn10300
mm: introduce pte_special pte bit
2008-04-28 08:58:23 -07:00
asm-parisc
mm: introduce pte_special pte bit
2008-04-28 08:58:23 -07:00
asm-powerpc
hugetlbfs: common code update for s390
2008-04-28 08:58:25 -07:00
asm-ppc
mm: introduce pte_special pte bit
2008-04-28 08:58:23 -07:00
asm-s390
s390: implement pte special bit
2008-04-28 08:58:23 -07:00
asm-sh
hugetlbfs: common code update for s390
2008-04-28 08:58:25 -07:00
asm-sparc
mm: introduce pte_special pte bit
2008-04-28 08:58:23 -07:00
asm-sparc64
hugetlbfs: common code update for s390
2008-04-28 08:58:25 -07:00
asm-um
mm: introduce pte_special pte bit
2008-04-28 08:58:23 -07:00
asm-v850
asm-x86
hugetlbfs: common code update for s390
2008-04-28 08:58:25 -07:00
asm-xtensa
mm: introduce pte_special pte bit
2008-04-28 08:58:23 -07:00
crypto
[CRYPTO] aes: Export generic setkey
2008-04-21 10:19:34 +08:00
keys
KEYS: Fix the comment to match the file name in rxrpc-type.h.
2008-04-21 22:43:55 +00:00
linux
i2o: remove static inline forward declarations
2008-04-28 08:58:34 -07:00
math-emu
media
V4L/DVB (7677): saa7134: Add/fix Beholder entries
2008-04-24 14:09:46 -03:00
mtd
net
IPv6 support for NFS server export caches
2008-04-23 16:13:36 -04:00
pcmcia
rdma
IB: convert struct class_device to struct device
2008-04-19 19:10:30 -07:00
rxrpc
scsi
[SCSI] rework scsi_target allocation
2008-04-22 15:16:31 -05:00
sound
[ALSA] Define MPU401 registers in sound/mpu401_uart.h
2008-04-24 12:38:22 +02:00
video
xen
xen: add balloon driver
2008-04-24 23:57:33 +02:00
Kbuild