ramips: Use dts alias based status led
[openwrt/staging/jow.git] / target / linux / ramips / dts / WZR-AGL300NH.dts
index ff7a5ecf9416ed6566e0a3d05c6c3809b11579df..ac87579e0f20ca514279fdfc211ea2c99e9b5bf7 100644 (file)
        compatible = "buffalo,wzr-agl300nh", "ralink,rt2880-soc";
        model = "Buffalo WZR-AGL300NH";
 
+       aliases {
+               led-status = &led_router;
+       };
+
        pci@440000 {
                status = "ok";
        };
@@ -81,7 +85,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               router {
+               led_router: router {
                        label = "wzr-agl300nh:green:router";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };