diff options
author | Marek Vasut <marex@denx.de> | 2022-04-04 01:18:06 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-14 15:39:15 -0400 |
commit | c6db8eb4f61a390539ccf39dcd056250b110a804 (patch) | |
tree | 6c87e5e9ffbfcfaa257c327c7c95a50ae3d1c5d1 /drivers/led | |
parent | fec91564788260dc4ba344373b442559e413adf4 (diff) | |
download | u-boot-c6db8eb4f61a390539ccf39dcd056250b110a804.tar.gz |
led: cortina: 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>
Diffstat (limited to 'drivers/led')
-rw-r--r-- | drivers/led/led_cortina.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/led/led_cortina.c b/drivers/led/led_cortina.c index 598c0a03db..bcbe78d632 100644 --- a/drivers/led/led_cortina.c +++ b/drivers/led/led_cortina.c @@ -256,25 +256,14 @@ static int cortina_led_bind(struct udevice *parent) ofnode node; dev_for_each_subnode(node, parent) { - struct led_uc_plat *uc_plat; struct udevice *dev; - const char *label; int ret; - label = ofnode_read_string(node, "label"); - if (!label) { - debug("%s: node %s has no label\n", __func__, - ofnode_get_name(node)); - return -EINVAL; - } - ret = device_bind_driver_to_node(parent, "ca-leds", ofnode_get_name(node), node, &dev); if (ret) return ret; - uc_plat = dev_get_uclass_plat(dev); - uc_plat->label = label; } return 0; |