]> 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>
Fri, 16 Dec 2011 04:50:14 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Dec 2011 06:01:18 +0000 (17:01 +1100)
commitbf5c742430c165853a2fffbca0836d4a097c5737
tree17ff4c338d5ea2140299425fe450a27dfde9b993
parent7e026daf5f4be162e1f12bdd8cf8d3323070fdfe
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