commit | c0fc68ba97b0f96fa4aaa6010ead6b77d3ffc3dd | [log] [tgz] |
---|---|---|
author | Muhammad Falak R Wani <falakreyaz@gmail.com> | Sun Sep 06 01:23:37 2015 +0530 |
committer | Jacek Anaszewski <j.anaszewski@samsung.com> | Tue Nov 03 08:59:11 2015 +0100 |
tree | 74cd1be90c4c548be10793fe35fb16854d969cdd | |
parent | aa4e2524955971730ff845c0589f2f8f441ad610 [diff] |
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>