]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/leds/leds-netxbig.c: use gpio_request_one()
authorAxel Lin <axel.lin@gmail.com>
Tue, 10 Jan 2012 23:09:37 +0000 (15:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Jan 2012 00:30:49 +0000 (16:30 -0800)
commitc338a42daaa69702ca4e5c7c114faf8a327d200f
tree3bcc570221a4a47c83e50d8d538730c4ea4bedd3
parent26e9dd18bf33e9b48ee9cfbb1ec2812e5c1aa92b
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/leds/leds-netxbig.c