]> git.baikalelectronics.ru Git - kernel.git/commit
leds: leds-gpio: use devm_gpio_request_one
authorSachin Kamat <sachin.kamat@linaro.org>
Sun, 25 Nov 2012 04:40:20 +0000 (10:10 +0530)
committerBryan Wu <cooloney@gmail.com>
Tue, 27 Nov 2012 22:49:24 +0000 (14:49 -0800)
commitd7d2210194722a8d16b3cb4bc6fe3d3ae0157546
tree180a664bdfcee84392ea82272ea2539a75a33f40
parent112cac86ff6ec02b26f30ab652e8e0e4d731359d
leds: leds-gpio: use devm_gpio_request_one

devm_gpio_request_one is device managed and makes error handling
and cleanup simpler.

Cc: Raphael Assenat <raph@8d.com>
Cc: Trent Piepho <tpiepho@freescale.com>
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-gpio.c