leds: gpio: Drop unneeded manual of_node assignment
PATCH 1/1 leds: gpio: Drop unneeded manual of_node assignment
This reverts the main change of commit bff23714bc36 ("leds: leds-gpio:
Set of_node for created LED devices") because of_node assignment is handled by core since commit 7ea79ae86c28 ("leds: gpio: use OF variant of LED registering function"). Basically the code was overwriting the of_node with same value.
No functional change expected.
--- drivers/leds/leds-gpio.c | 1 - 1 file changed, 1 deletion(-)
drivers/leds/leds-gpio.c +0 -1
@@ -190,7 +190,6 @@ static struct gpio_leds_priv *gpio_leds_create(struct platform_device *pdev)fwnode_handle_put (child);return ERR_PTR (ret); } - led_dat->cdev.dev->of_node = np; priv->num_leds++; }
Signature · 1 line
2.7.4
Quoted 9 lines · Krzysztof Kozlowski
This reverts the main change of commit
bff23714bc36("leds: leds-gpio:
Setof_nodefor created LED devices") becauseof_nodeassignment is handled by core since commit7ea79ae86c28("leds: gpio: use OF variant of LED registering function"). Basically the code was overwriting theof_nodewith same value.No functional change expected.
Signed-off-by Krzysztof Kozlowski <[email protected]>
Thanks!
Jacek Anaszewski
AppliedHi Krzysztof,
Thank you for the patch.
Quoted 19 lines · Krzysztof Kozlowski
This reverts the main change of commit
bff23714bc36("leds: leds-gpio:
Setof_nodefor created LED devices") becauseof_nodeassignment is handled by core since commit7ea79ae86c28("leds: gpio: use OF variant of LED registering function"). Basically the code was overwriting theof_nodewith same value.No functional change expected.
Signed-off-by Krzysztof Kozlowski <[email protected]>--- drivers/leds/leds-gpio.c | 1 - 1 file changed, 1 deletion(-)drivers/leds/leds-gpio.c +0
-0
drivers/leds/leds-gpio.c static struct gpio_leds_priv *gpio_leds_create(struct platform_device *pdev) · line 195
Quoted 7 lines
drivers/leds/leds-gpio.c +0
-1@@ -190,7 +190,6 @@ static struct gpio_leds_priv *gpio_leds_create(struct platform_device *pdev)fwnode_handle_put (child);return ERR_PTR (ret); } - led_dat->cdev.dev->of_node = np; priv->num_leds++; }
Applied.
Signature · 2 lines
Best regards, Jacek Anaszewski