ramips: fix USB LED for Belkin F9K1109v1
authorSungbo Eo <mans0n@gorani.run>
Mon, 11 Nov 2019 16:19:03 +0000 (01:19 +0900)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 20 Dec 2019 14:54:33 +0000 (15:54 +0100)
Device support for Belkin F9K1109v1 was added using set_usb_led()
although this was removed in 772b27c20736 ("ramips: set F5D8235 v1
usb led trigger via devicetree").

Use ucidef_set_led_usbport() instead.

Fixes: f2c83532f92c ("ramips: add support for Belkin F9K1109v1")
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
[rephrase commit title and message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/rt3883/base-files/etc/board.d/01_leds

index 8502c8f41787ad44d3317dcd4341e64f34adeac5..e7c2cad3d213fe4ea7b0b41577b1b7c9f93f160c 100755 (executable)
@@ -18,7 +18,7 @@ led_wlan="$(get_dt_led wlan)"
 
 case $board in
 belkin,f9k1109v1)
-       set_usb_led "$boardname:green:usb1"
+       ucidef_set_led_usbport "usb" "USB" "$boardname:green:usb1" "usb1-port1"
        ucidef_set_led_netdev "lan" "lan" "$boardname:blue:wps" "eth0"
        ;;
 edimax,br-6475nd)