leds: leds-menf21bmc.c: Use devm_led_class_register
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Fri, 16 Oct 2015 20:17:55 +0000 (01:47 +0530)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Tue, 3 Nov 2015 07:59:52 +0000 (08:59 +0100)
commit81aad9f81e6d89819f12656bd38df9ef639dbe45
tree1976fba1f28f2c579874c5d2319222f4b210acf3
parentd43986143463690642bac8897196496d4c776269
leds: leds-menf21bmc.c: Use devm_led_class_register

Use resource-managed function devm_led_classdev_register instead
of led_classdev_register, consequently remove redundant
menf21bmc_led_remove function.
Also drop the unneeded label err_free_leds.

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-menf21bmc.c