leds: gpio: switch to managed version of led_classdev_register
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 14 Sep 2016 18:55:27 +0000 (20:55 +0200)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Thu, 15 Sep 2016 14:49:42 +0000 (16:49 +0200)
commitbc2c0dd85a0a31505ca2f92bef891ddac9126725
treecf6805d3478206b7f2e37c627e596485b14a6cee
parentbec69de89bab29c739ab84ceb04ae63d6811babf
leds: gpio: switch to managed version of led_classdev_register

Using the managed version of led_classdev_register allows to
significantly simplify the code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-gpio.c