leds: leds-hp6xx: Use devm_led_classdev_register
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Sat, 5 Sep 2015 19:53:37 +0000 (01:23 +0530)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Tue, 3 Nov 2015 07:59:11 +0000 (08:59 +0100)
commitc0fc68ba97b0f96fa4aaa6010ead6b77d3ffc3dd
tree74cd1be90c4c548be10793fe35fb16854d969cdd
parentaa4e2524955971730ff845c0589f2f8f441ad610
leds: leds-hp6xx: Use devm_led_classdev_register

Use resource-managed function devm_led_classdev_register
instead of led_classdev_register to simplify error path.
An unnecessary check of ret is replaced with a direct return
Also, remove redundant hp6xxled_remove.

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