diff options
author | Tom Rini <trini@konsulko.com> | 2020-10-09 08:58:56 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-10-09 08:58:56 -0400 |
commit | 0570938e3c1835a6bcd0ce5b47a501ad5a09a9b3 (patch) | |
tree | 6f3f40e4e228f8698b1357e52fb14309022ea96d /drivers/led/led_gpio.c | |
parent | a58d86db46456c4e14d4d140e419c4c5999fb2f8 (diff) | |
parent | f5cb6c3081dfbd36dd0be9b9f4b42a6885b640b9 (diff) |
Merge branch '2020-10-08-misc-board-improvements'
- Move ASPEED ram driver, update.
- Exhance pinctrl/gpio support, update Kendryte K210 support
- Enhance qemu_arm64 support for a single binary to work with and
without TF-A
Diffstat (limited to 'drivers/led/led_gpio.c')
-rw-r--r-- | drivers/led/led_gpio.c | 7 |
1 files changed, 2 insertions, 5 deletions
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); |