]> 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>
Fri, 9 Dec 2011 04:52:43 +0000 (15:52 +1100)
commit482f087d99a43c297ff6eed9d3bb5645d9d82d4a
tree3ee5e8070335348654160f61bf65c86f0b4407bc
parent603188a54f654b2b5213d6aa51b42420d9916ac9
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