gpiolib: fix poll(2) support reconfigure on sysfs polarity change
authorJani Nikula <ext-jani.1.nikula@nokia.com>
Fri, 8 Jan 2010 22:43:03 +0000 (14:43 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 11 Jan 2010 17:34:06 +0000 (09:34 -0800)
commit24f3c59e1781435835083eab587399c8bdc235b4
tree8a82b2b7bb9fad5ddfe8149e4af0fb12bfeb1878
parent3f4724027bfe38644146252f7aa979dea7f80720
gpiolib: fix poll(2) support reconfigure on sysfs polarity change

Previously enabled poll(2) support on one edge was never reconfigured when
sysfs polarity change was triggered from kernel, because 'struct device
*dev' shadowed an earlier definition.

Found by sparse, which I should've run much earlier.

Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpio/gpiolib.c