]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
leds: leds-wrap.c: Use devm_led_classdev_register
authorFida Mohammad <fmthoker@gmail.com>
Wed, 21 Oct 2015 10:58:35 +0000 (03:58 -0700)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Tue, 3 Nov 2015 07:59:58 +0000 (08:59 +0100)
commite9aadb864f04f1f7c7f8713fead64a2370be940d
tree4f29c31a6fe05ed29559f5f2346803a8f7d94477
parent10238adb6f2bcc6c418188ef3425ea57297fa3a6
leds: leds-wrap.c: Use devm_led_classdev_register

Use of resource managed function devm_led_classdev_register to
make initialization path simpler. Also removed redundant remove
function.

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