From 05dec742bd20e8284e57559d53d38cffc2054fee Mon Sep 17 00:00:00 2001 From: Marek BehĂșn Date: Fri, 18 Sep 2020 00:32:55 +0200 Subject: leds: lt3593: do not rewrite .of_node of new LED device to wrong value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Cc: Daniel Mack Signed-off-by: Pavel Machek --- drivers/leds/leds-lt3593.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/leds') diff --git a/drivers/leds/leds-lt3593.c b/drivers/leds/leds-lt3593.c index c2d7ffebacc5..061f02e3995a 100644 --- a/drivers/leds/leds-lt3593.c +++ b/drivers/leds/leds-lt3593.c @@ -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; -- cgit v1.2.3-58-ga151