]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
leds: Fix potential leds-gpio oops
authorUwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Sun, 9 Mar 2008 20:42:27 +0000 (20:42 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Mon, 31 Mar 2008 22:31:13 +0000 (23:31 +0100)
commitd95cbe6158a679d50e03787bb1dc21ff73dac372
tree6a4e28ed398da5405e446c5b74e46bdc1f90746f
parenta9edadbf790d72adf6ebed476cb5caf7743e7e4a
leds: Fix potential leds-gpio oops

Call gpio_cansleep only after gpio_request succeeded avoiding an
oops.

Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
drivers/leds/leds-gpio.c