aha/drivers/gpio
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
..
gpiolib.c gpiolib: better rmmod infrastructure 2008-04-28 08:58:34 -07:00
Kconfig gpio: rename pca953x symbols 2008-02-06 10:41:15 -08:00
Makefile gpio: rename pca953x symbols 2008-02-06 10:41:15 -08:00
mcp23s08.c mcp23s08 spi gpio expander support 2008-02-05 09:44:13 -08:00
pca953x.c gpio/pca953x bugfix: mark as can_sleep 2008-03-10 18:01:19 -07:00
pcf857x.c gpiolib: pcf857x i2c gpio expander support 2008-02-05 09:44:13 -08:00