From e07c80dfc881daed67c495d99885cc045f70d89a Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Tue, 4 Oct 2016 20:34:03 +0200 Subject: lantiq: use aliases device tree node for leds The chosen node is clearly the wrong place for aliases. Signed-off-by: Mathias Kresin --- target/linux/lantiq/base-files/lib/functions/lantiq.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/lantiq/base-files/lib/functions') diff --git a/target/linux/lantiq/base-files/lib/functions/lantiq.sh b/target/linux/lantiq/base-files/lib/functions/lantiq.sh index 456e54bb3f..e4eb4d723f 100644 --- a/target/linux/lantiq/base-files/lib/functions/lantiq.sh +++ b/target/linux/lantiq/base-files/lib/functions/lantiq.sh @@ -32,7 +32,7 @@ lantiq_get_dt_led() { local label local ledpath local basepath="/sys/firmware/devicetree/base" - local nodepath="$basepath/chosen/leds/$1" + local nodepath="$basepath/aliases/led-$1" [ -f "$nodepath" ] && ledpath=$(cat "$nodepath") [ -n "$ledpath" ] && label=$(cat "$basepath$ledpath/label") -- cgit v1.2.3