summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-lp8501.c
diff options
context:
space:
mode:
authorVaishali Thakkar <vthakkar1994@gmail.com>2015-08-18 17:20:16 +0300
committerJacek Anaszewski <j.anaszewski@samsung.com>2015-08-28 15:06:23 +0300
commitc2d4af9370b1757714b895f005479393e4ec14b8 (patch)
tree4e0172f4f9e7c09c0faefc7946bbe5333f17231a /drivers/leds/leds-lp8501.c
parentb8926ba0d7fd74e140d408f6dfeff5f5b9c2afae (diff)
downloadlinux-c2d4af9370b1757714b895f005479393e4ec14b8.tar.xz
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>
Diffstat (limited to 'drivers/leds/leds-lp8501.c')
0 files changed, 0 insertions, 0 deletions