[PATCH v2 6/7] leds: gpio: switch to managed version of led_classdev_register

2016-09-14 Thread Heiner Kallweit
Using the managed version of led_classdev_register allows to significantly simplify the code. Signed-off-by: Heiner Kallweit --- v2: - rebased due to removal of patch 2 of the original series --- drivers/leds/leds-gpio.c | 23 ++- 1 file changed, 2

[PATCH v2 6/7] leds: gpio: switch to managed version of led_classdev_register

2016-09-14 Thread Heiner Kallweit
Using the managed version of led_classdev_register allows to significantly simplify the code. Signed-off-by: Heiner Kallweit --- v2: - rebased due to removal of patch 2 of the original series --- drivers/leds/leds-gpio.c | 23 ++- 1 file changed, 2 insertions(+), 21