diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2008-10-16 07:03:11 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 20:21:40 +0200 |
commit | c557fa3e4c156b8713c177d9dde08920130bf551 (patch) | |
tree | a79b6e702b0d76ba79c2204af527a0c193a68253 /kernel/sysctl_check.c | |
parent | gpio: make gpiochip label const (diff) | |
download | linux-c557fa3e4c156b8713c177d9dde08920130bf551.tar.xz linux-c557fa3e4c156b8713c177d9dde08920130bf551.zip |
gpio: max7301: fix the race between chip addition and pins reconfiguration
There is a small race and code ugliness in max7301: pins are reconfigured
after the chip is registered. Swap these calls so that the device is
registered in correct state.
Also this fixes the comile-time warning about unchecked gpiochip_remove.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Cc: Juergen Beisert <j.beisert@pengutronix.de>
Cc: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de>
Cc: Russell King <rmk@arm.linux.org.uk>
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>
Diffstat (limited to 'kernel/sysctl_check.c')
0 files changed, 0 insertions, 0 deletions