]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
led: bcm6753: Drop duplicate OF "label" property parsing
authorTom Rini <trini@konsulko.com>
Thu, 14 Apr 2022 14:13:53 +0000 (10:13 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 14 Apr 2022 19:39:15 +0000 (15:39 -0400)
The OF "label" property parsing is now handled in LED core,
drop the duplicate implementation from this driver.

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/led/led_bcm6753.c

index a32bd8204fa09c300a0fde853c9f706cc5a6aa16..88b650cbfca3fabf5b4d2e916696195c99c47d7b 100644 (file)
@@ -229,26 +229,14 @@ static int bcm6753_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, "bcm6753-led",
                                                 ofnode_get_name(node),
                                                 node, &dev);
                if (ret)
                        return ret;
-
-               uc_plat = dev_get_uclass_plat(dev);
-               uc_plat->label = label;
        }
 
        return 0;