leds: gpio: use OF variant of LED registering function
authorRafał Miłecki <rafal@milecki.pl>
Mon, 6 Mar 2017 05:19:45 +0000 (06:19 +0100)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Wed, 8 Mar 2017 20:10:02 +0000 (21:10 +0100)
commit7ea79ae86c28e729d51fa5703b093d27cca25217
tree5da0a6911c9e78b00c152feb6170450f56cd63a0
parent442c609830e98919faa78b797e9b89c53bab9cbf
leds: gpio: use OF variant of LED registering function

In leds-gpio we support LEDs specified in DT so we should use
(devm_)of_led_classdev_register. This allows passing DT node as argument
for use by the LED subsystem.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
drivers/leds/leds-gpio.c