leds: gpio: Drop unneeded manual of_node assignment
This reverts the main change of commitbff23714bc
("leds: leds-gpio: Set of_node for created LED devices") because of_node assignment is handled by core since commit7ea79ae86c
("leds: gpio: use OF variant of LED registering function"). Basically the code was overwriting the of_node with same value. No functional change expected. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Tested-by: Rafał Miłecki <rafal@milecki.pl> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
This commit is contained in:
parent
555fc5ba57
commit
b086592e5d
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue