Message ID | 20200914150206.90002-9-seanga2@gmail.com |
---|---|
State | Accepted |
Commit | aaa3645e16fcc164913af20ccb36a1ec77322008 |
Delegated to: | Tom Rini |
Headers | show |
Series | riscv: Add FPIOA and GPIO support for Kendryte K210 | expand |
On Mon, Sep 14, 2020 at 11:02:02AM -0400, Sean Anderson wrote: > This more closely mirrors Linux's behaviour, and will make it easier to > transition to using function+color in the future. > > Signed-off-by: Sean Anderson <seanga2@gmail.com> > Reviewed-by: Simon Glass <sjg@chromium.org> Applied to u-boot/master, thanks!
diff --git a/drivers/led/led_gpio.c b/drivers/led/led_gpio.c index ef9b61ee62..2cdb0269f4 100644 --- a/drivers/led/led_gpio.c +++ b/drivers/led/led_gpio.c @@ -99,11 +99,8 @@ static int led_gpio_bind(struct udevice *parent) const char *label; label = ofnode_read_string(node, "label"); - if (!label) { - debug("%s: node %s has no label\n", __func__, - ofnode_get_name(node)); - return -EINVAL; - } + if (!label) + label = ofnode_get_name(node); ret = device_bind_driver_to_node(parent, "gpio_led", ofnode_get_name(node), node, &dev);