gpiolib: i2c/spi drivers: handle rmmod better
authorGuennadi Liakhovetski <g.liakhovetski@pengutronix.de>
Mon, 28 Apr 2008 09:14:45 +0000 (02:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Apr 2008 15:58:34 +0000 (08:58 -0700)
commitd72cbed0c486e3db8b56380635f8e845073ce63a
tree8739c1078f970a2acdb24fd3f2b94c68c89dd3b5
parent438d8908b379b6322fc3b28d45c9ebdddf58bc20
gpiolib: i2c/spi drivers: handle rmmod better

Use the newly introduced owner field in struct gpio_chip to protect the
current (small) set of non-SOC GPIO drivers from being unloaded while any of
their GPIOs are in use.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de>
[ add mcp23s08 and pcf857x ]
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>
drivers/gpio/mcp23s08.c
drivers/gpio/pca953x.c
drivers/gpio/pcf857x.c