diff options
author | Muhammad Falak R Wani <falakreyaz@gmail.com> | 2015-09-05 14:23:27 (GMT) |
---|---|---|
committer | Jacek Anaszewski <j.anaszewski@samsung.com> | 2015-11-03 07:59:13 (GMT) |
commit | 583a2b2cd73c13a91b5f529466dec4d27716d226 (patch) | |
tree | 7cc9056db93ccff6b502fe5826d0fee88850f1c3 /drivers/leds/leds-ipaq-micro.c | |
parent | c0fc68ba97b0f96fa4aaa6010ead6b77d3ffc3dd (diff) | |
download | linux-583a2b2cd73c13a91b5f529466dec4d27716d226.tar.xz |
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>
Diffstat (limited to 'drivers/leds/leds-ipaq-micro.c')
0 files changed, 0 insertions, 0 deletions