Commit 05dec742 authored by Marek Behún's avatar Marek Behún Committed by Pavel Machek

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: default avatarMarek Behún <marek.behun@nic.cz>
Cc: Daniel Mack <daniel@caiaq.de>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent 8853c95e
......@@ -107,7 +107,6 @@ static int lt3593_led_probe(struct platform_device *pdev)
return ret;
}
led_data->cdev.dev->of_node = dev->of_node;
platform_set_drvdata(pdev, led_data);
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment