]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/leds/leds-netxbig.c: use gpio_request_one()
authorAxel Lin <axel.lin@gmail.com>
Thu, 8 Dec 2011 04:42:19 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Dec 2011 06:43:18 +0000 (17:43 +1100)
commit5bedf3ca47c55077c09d7680ac06c12ae59db6a9
treecb9bdd089d466af9e3995a08f79d95d7a0326db2
parent45a135f7aa23f7bf9eb5c54258104e1d5f3116a2
drivers/leds/leds-netxbig.c: use gpio_request_one()

Use gpio_request_one() instead of multiple gpiolib calls.  This also
simplifies error handling a bit.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Simon Guinot <sguinot@lacie.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/leds/leds-netxbig.c