leds: leds-gpio: use devm_gpio_request_one
authorSachin Kamat <sachin.kamat@linaro.org>
Sun, 25 Nov 2012 04:40:20 +0000 (09:40 +0530)
committerBryan Wu <cooloney@gmail.com>
Tue, 27 Nov 2012 22:49:24 +0000 (14:49 -0800)
commite3b1d44c3550e5badfa5b78ffec80e15d7d9b287
tree180a664bdfcee84392ea82272ea2539a75a33f40
parent4401e48737c4068604144a5c0ba23a9c82ea3a37
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