]> 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>
Wed, 14 Dec 2011 05:51:56 +0000 (16:51 +1100)
commit9646b6928f6c841568315f63d3b556dbb39fe1ee
treefa8fa0426c4753df388f400ebc00d1b19ee5b6e6
parente6319446f7f79e1e189e3e5d7c0fa8215ffdc00b
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