leds: ns2: register LED immediately after parsing DT properties
authorMarek Behún <marek.behun@nic.cz>
Thu, 17 Sep 2020 22:33:33 +0000 (00:33 +0200)
committerPavel Machek <pavel@ucw.cz>
Sat, 26 Sep 2020 19:56:42 +0000 (21:56 +0200)
commita4a469b4314e95818521daef82aa7f9071123245
treeea5024b9ad2cd300f02ac92f4e703801c6c241f4
parentb3f96922839a589e8417c31a1837f78382d3f0ab
leds: ns2: register LED immediately after parsing DT properties

Register each LED immediately after parsing OF properties. This
simplifies the driver.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Cc: Simon Guinot <simon.guinot@sequanux.org>
Cc: Simon Guinot <sguinot@lacie.com>
Cc: Vincent Donnefort <vdonnefort@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-ns2.c