From: Tom Rini Date: Thu, 14 Apr 2022 14:14:22 +0000 (-0400) Subject: led: pwm: Drop duplicate OF "label" property parsing X-Git-Tag: v2025.01-rc5-pxa1908~1456^2~10 X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=d797dd4c1ecf2b83eba4d2f618e6b1b5394beb95;p=u-boot.git led: pwm: 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: Tom Rini --- diff --git a/drivers/led/led_pwm.c b/drivers/led/led_pwm.c index 4e50272258..10bd1636c3 100644 --- a/drivers/led/led_pwm.c +++ b/drivers/led/led_pwm.c @@ -151,21 +151,11 @@ static int led_pwm_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, LEDS_PWM_DRIVER_NAME, ofnode_get_name(node), node, &dev); if (ret) return ret; - - uc_plat = dev_get_uclass_plat(dev); - uc_plat->label = label; } return 0; }