]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ARM: dts: ux500: Fix LED probing
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 13 Jun 2021 12:33:56 +0000 (14:33 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 13 Aug 2021 07:29:41 +0000 (09:29 +0200)
commitc78f2b8975b3b248cc8be113985458febe637b95
tree13c5e1a80e1bcb0691e4e562562e062030be02a0
parent3c413cfdf8ac1b63b5cc9af2d2c69b5b0973579f
ARM: dts: ux500: Fix LED probing

BugLink: https://bugs.launchpad.net/bugs/1938340
commit 7749510c459c10c431d746a4749e7c9cf2899156 upstream.

The Ux500 HREF LEDs have not been probing properly for a
while as this was introduce:

     ret = of_property_read_u32(np, "color", &led_color);
     if (ret)
             return ret;

Since the device tree did not define the new invented color
attribute, probe was failing.

Define color attributes for the LEDs so they work again.

Link: https://lore.kernel.org/r/20210613123356.880933-1-linus.walleij@linaro.org
Fixes: 92a81562e695 ("leds: lp55xx: Add multicolor framework support to lp55xx")
Cc: stable@vger.kernel.org
Cc: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/arm/boot/dts/ste-href.dtsi