leds: leds-lt3593: use devm_gpio_request_one
authorSachin Kamat <sachin.kamat@linaro.org>
Sun, 25 Nov 2012 04:44:27 +0000 (10:14 +0530)
committerBryan Wu <cooloney@gmail.com>
Tue, 27 Nov 2012 22:49:24 +0000 (14:49 -0800)
commit95a8ff835674e1156c0640f83829773f8bfe655a
treea531694c0a331162d1fc43907f4f308e6d2bd8a4
parente3b1d44c3550e5badfa5b78ffec80e15d7d9b287
leds: leds-lt3593: use devm_gpio_request_one

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

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-lt3593.c