Skip to content
Commit e3aa7664 authored by Marek Vasut's avatar Marek Vasut Committed by Tom Rini
Browse files

led: gpio: Check device compatible string to determine the top level node



Since 2d1deaf8 ("led: gpio: Drop duplicate OF "label" property parsing"),
all LED nodes have some sort of label. Use device_is_compatible(..."leds-gpio")
to determine whether this is a top-level node, since it is only the top
level node which is compatible with "leds-gpio", the GPIO LEDs subnodes
are not.

Fixes: 2d1deaf8 ("led: gpio: Drop duplicate OF "label" property parsing")
Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Sean Anderson <seanga2@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Steven Lawrance <steven.lawrance@softathome.com>
Reviewed-by: default avatarPatrice Chotard <patrice.chotard@foss.st.com>
Tested-by: default avatarPatrice Chotard <patrice.chotard@foss.st.com>
parent c438866b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment