]> git.baikalelectronics.ru Git - kernel.git/commit
leds: leds-fsg: Use devm_led_classdev_register
authorVaishali Thakkar <vthakkar1994@gmail.com>
Tue, 18 Aug 2015 14:20:16 +0000 (19:50 +0530)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Fri, 28 Aug 2015 12:06:23 +0000 (14:06 +0200)
commit884ae91fd1116c2a4b06962ec1e11103002b6fbe
tree4e0172f4f9e7c09c0faefc7946bbe5333f17231a
parent510861beedc2ec9531e595be9b8c5bc27866ffa7
leds: leds-fsg: Use devm_led_classdev_register

Use resource-managed function devm_led_classdev_register instead
of led_classdev_register to make the error-path simpler.

To be compatible with the change, various gotos are replaced with
direct returns and unneeded labels are dropped. Also, remove
fsg_led_remove as it is now redundant.

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-fsg.c