commit | 583a2b2cd73c13a91b5f529466dec4d27716d226 | [log] [tgz] |
---|---|---|
author | Muhammad Falak R Wani <falakreyaz@gmail.com> | Sat Sep 05 19:53:27 2015 +0530 |
committer | Jacek Anaszewski <j.anaszewski@samsung.com> | Tue Nov 03 08:59:13 2015 +0100 |
tree | 7cc9056db93ccff6b502fe5826d0fee88850f1c3 | |
parent | c0fc68ba97b0f96fa4aaa6010ead6b77d3ffc3dd [diff] |
leds: leds-ot200: Use devm_led_classdev_register Use resource-managed function devm_led_classdev_register instead of led_classdev_register to make the error path simpler. The goto is replaced with direct return, unneeded label err is dropped. Also, remove redundant ot200_led_remove. Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>