summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2018-12-07 11:10:06 +0100
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2018-12-08 18:17:14 +0100
commitb086592e5dcd9cee360f44be801fbcadb24d5c46 (patch)
treedfa9173c83461656431c0b2fa70f0d34daeef3ea /drivers/leds
parent555fc5ba57908d7c0e4593bc58b2766f5ed5adf5 (diff)
downloadlinux-b086592e5dcd9cee360f44be801fbcadb24d5c46.tar.bz2
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. 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>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-gpio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c
index 45e012093865..998f2ff6914d 100644
--- a/drivers/leds/leds-gpio.c
+++ b/drivers/leds/leds-gpio.c
@@ -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++;
}