]> 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, 2 Dec 2011 03:12:41 +0000 (14:12 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 6 Dec 2011 04:05:32 +0000 (15:05 +1100)
commitda9a429768195db4b54b5440f1c8c75dee18d528
tree50dfcc1c4a7d9c890183f49e08d7624b8fcc141c
parentdeec67303c8e03c8ab28722e8182078a70883b0b
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