diff options
author | Marek Vasut <marex@denx.de> | 2022-04-04 01:18:07 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-14 15:39:15 -0400 |
commit | 2d1deaf88edc1182372794c79f43c6aa6c163d8e (patch) | |
tree | d0c16bb651d1f77bcb75572d10b43ba204b9a431 | |
parent | d797dd4c1ecf2b83eba4d2f618e6b1b5394beb95 (diff) | |
download | u-boot-2d1deaf88edc1182372794c79f43c6aa6c163d8e.tar.gz u-boot-2d1deaf88edc1182372794c79f43c6aa6c163d8e.tar.bz2 u-boot-2d1deaf88edc1182372794c79f43c6aa6c163d8e.zip |
led: gpio: Drop duplicate OF "label" property parsing
The OF "label" property parsing is now handled in LED core,
drop the duplicate implementation from this driver.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Alex Nemirovsky <alex.nemirovsky@cortina-access.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Philippe Reynes <philippe.reynes@softathome.com>
Cc: Sean Anderson <seanga2@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Steven Lawrance <steven.lawrance@softathome.com>
-rw-r--r-- | drivers/led/led_gpio.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/led/led_gpio.c b/drivers/led/led_gpio.c index 67ece3cbcd..958dbd31e7 100644 --- a/drivers/led/led_gpio.c +++ b/drivers/led/led_gpio.c @@ -95,19 +95,11 @@ static int led_gpio_bind(struct udevice *parent) int ret; dev_for_each_subnode(node, parent) { - struct led_uc_plat *uc_plat; - const char *label; - - label = ofnode_read_string(node, "label"); - if (!label) - label = ofnode_get_name(node); ret = device_bind_driver_to_node(parent, "gpio_led", ofnode_get_name(node), node, &dev); if (ret) return ret; - uc_plat = dev_get_uclass_plat(dev); - uc_plat->label = label; } return 0; |