diff options
author | Marek Vasut <marex@denx.de> | 2022-04-04 01:18:05 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-14 15:39:15 -0400 |
commit | fec91564788260dc4ba344373b442559e413adf4 (patch) | |
tree | 34252e5eb8b850520314c18ed8479974e20b3d0a | |
parent | 93c3722085eeb038b0c087e20ee48de626318eda (diff) | |
download | u-boot-fec91564788260dc4ba344373b442559e413adf4.tar.gz u-boot-fec91564788260dc4ba344373b442559e413adf4.tar.bz2 u-boot-fec91564788260dc4ba344373b442559e413adf4.zip |
led: bcm6858: 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_bcm6858.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/led/led_bcm6858.c b/drivers/led/led_bcm6858.c index 3ca6c5b8a9..6b3698674b 100644 --- a/drivers/led/led_bcm6858.c +++ b/drivers/led/led_bcm6858.c @@ -241,26 +241,14 @@ static int bcm6858_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, "bcm6858-led", ofnode_get_name(node), node, &dev); if (ret) return ret; - - uc_plat = dev_get_uclass_plat(dev); - uc_plat->label = label; } return 0; |