leds/leds-s3c24xx: use devm_gpio_request
authorDevendra Naga <devendra.aaru@gmail.com>
Wed, 11 Jul 2012 09:50:32 +0000 (17:50 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Mon, 23 Jul 2012 23:52:40 +0000 (07:52 +0800)
commit5ecf6e40bbb8649b8418c8038a2af1faefbc56e4
tree0f18e577dfdb0a3179f46e4a4d37a4e9e213eba7
parenta209f7669870c461932515eba147b961692de37f
leds/leds-s3c24xx: use devm_gpio_request

why?
because if the led_classdev_register fails we wont do gpio free
because using devm_ functions, there is no need for error paths

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
drivers/leds/leds-s3c24xx.c