leds: leds-locomo.c: Use devm_led_classdev_register
authorFida Mohammad <fmthoker@gmail.com>
Fri, 16 Oct 2015 21:33:03 +0000 (14:33 -0700)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Tue, 3 Nov 2015 07:59:50 +0000 (08:59 +0100)
commitd43986143463690642bac8897196496d4c776269
treec17e66dbd005675e283d71bb54e77fe3c58465b4
parent707f33ed85ff423016674d27bb2e60fe8fa352ce
leds: leds-locomo.c: Use devm_led_classdev_register

Use resource managed function devm_led_classdev_register to make
initialisation path simpler.
Also removed redundant led_classdev_unregister function.

Signed-off-by: Fida Mohammad <fmthoker@gmail.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-locomo.c