Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Marek Behún and committed by
Pavel Machek
05dec742 8853c95e

-1
-1
drivers/leds/leds-lt3593.c
··· 107 107 return ret; 108 108 } 109 109 110 - led_data->cdev.dev->of_node = dev->of_node; 111 110 platform_set_drvdata(pdev, led_data); 112 111 113 112 return 0;