leds: leds-ns2: use devm_gpio_request_one
authorSachin Kamat <sachin.kamat@linaro.org>
Sun, 25 Nov 2012 04:58:10 +0000 (10:28 +0530)
committerBryan Wu <cooloney@gmail.com>
Tue, 27 Nov 2012 22:49:24 +0000 (14:49 -0800)
devm_gpio_request_one is device managed and makes error handling
and cleanup simpler.

Cc: Simon Guinot <sguinot@lacie.com>
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>

No differences found