projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8853c95
)
leds: lt3593: do not rewrite .of_node of new LED device to wrong value
author
Marek Behún
<marek.behun@nic.cz>
Thu, 17 Sep 2020 22:32:55 +0000
(
00:32
+0200)
committer
Pavel Machek
<pavel@ucw.cz>
Sat, 26 Sep 2020 19:56:39 +0000
(21:56 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/leds/leds-lt3593.c
b/drivers/leds/leds-lt3593.c
index c2d7ffebacc56a28dc27c9d5cf1ee7a7d59a6705..061f02e3995aeae22c552b7af59d16cea44f50e4 100644
(file)
--- 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;