summaryrefslogtreecommitdiff
path: root/drivers/led
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2022-04-04 01:18:03 +0200
committerTom Rini <trini@konsulko.com>2022-04-14 15:39:14 -0400
commit9183fb45b8a91cc0d54cd94d4c165dd73c4cfba1 (patch)
tree4ebbf4b6d6a7ad9cd1cdf64fcd905c09f87f25c2 /drivers/led
parent83c63f0d11856ab5664506f0dd12d7d76c46a3a4 (diff)
downloadu-boot-9183fb45b8a91cc0d54cd94d4c165dd73c4cfba1.tar.gz
u-boot-9183fb45b8a91cc0d54cd94d4c165dd73c4cfba1.tar.bz2
u-boot-9183fb45b8a91cc0d54cd94d4c165dd73c4cfba1.zip
led: bcm6328: 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_bcm6328.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/led/led_bcm6328.c b/drivers/led/led_bcm6328.c
index bf8207d638..f59a92fb1f 100644
--- a/drivers/led/led_bcm6328.c
+++ b/drivers/led/led_bcm6328.c
@@ -204,26 +204,14 @@ static int bcm6328_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, "bcm6328-led",
ofnode_get_name(node),
node, &dev);
if (ret)
return ret;
-
- uc_plat = dev_get_uclass_plat(dev);
- uc_plat->label = label;
}
return 0;