aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/lib/functions
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2016-10-04 20:34:03 +0200
committerMathias Kresin <dev@kresin.me>2016-10-05 19:23:23 +0200
commite07c80dfc881daed67c495d99885cc045f70d89a (patch)
tree2da8a52c1aa361717b20657c1ed80a4e0ff579ca /target/linux/lantiq/base-files/lib/functions
parent8b639410d188a979783cc57f9a4fedbcd362bf10 (diff)
downloadupstream-e07c80dfc881daed67c495d99885cc045f70d89a.tar.gz
upstream-e07c80dfc881daed67c495d99885cc045f70d89a.tar.bz2
upstream-e07c80dfc881daed67c495d99885cc045f70d89a.zip
lantiq: use aliases device tree node for leds
The chosen node is clearly the wrong place for aliases. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/lantiq/base-files/lib/functions')
-rw-r--r--target/linux/lantiq/base-files/lib/functions/lantiq.sh2
1 files changed, 1 insertions, 1 deletions
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")