]> git.baikalelectronics.ru Git - kernel.git/commit
leds: lt3593: do not rewrite .of_node of new LED device to wrong value
authorMarek Behún <marek.behun@nic.cz>
Thu, 17 Sep 2020 22:32:55 +0000 (00:32 +0200)
committerPavel Machek <pavel@ucw.cz>
Sat, 26 Sep 2020 19:56:39 +0000 (21:56 +0200)
commit7b9ac1ef9790382e88954e51867244999c31550c
tree21182ecd36d75c20e9a4b80be28328e6ef07bdf6
parentdf8354e9b8d95f47a78726dcbe76357d326533e4
leds: lt3593: do not rewrite .of_node of new LED device to wrong value

The devm_led_classdev_register_ext is given init_data with fwnode set,
so the LED core sets .of_node of the new LED classdev correctly.

Do not rewrite this value to parent of_node.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Cc: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-lt3593.c