ar71xx: make ar934x_nfc driver compatible with 3.7
[openwrt/openwrt.git] / target / linux / ar71xx / patches-3.3 / 608-MIPS-ath79-ubnt-xm-add-more-boards.patch
index ec5595f7ddd1ea6ca9d7f689a08a6f47010f4ae3..bee07b35c882f986c5ece240439c3238da4c99a9 100644 (file)
@@ -57,7 +57,7 @@
  
        ath79_register_leds_gpio(-1, ARRAY_SIZE(ubnt_xm_leds_gpio),
                                 ubnt_xm_leds_gpio);
-@@ -79,9 +85,107 @@ static void __init ubnt_xm_init(void)
+@@ -79,9 +85,112 @@ static void __init ubnt_xm_init(void)
  
        ath79_register_m25p80(NULL);
        ap91_pci_init(eeprom, NULL);
 +              .name           = "ubnt:green:globe",
 +              .gpio           = 0,
 +              .active_low     = 1,
++      }, {
++              .name           = "ubnt:green:power",
++              .gpio           = 11,
++              .active_low     = 1,
++              .default_state  = LEDS_GPIO_DEFSTATE_ON,
 +      }
 +};
 +
 +           ubnt_unifi_setup);
 --- a/arch/mips/ath79/Kconfig
 +++ b/arch/mips/ath79/Kconfig
-@@ -70,9 +70,11 @@ config ATH79_MACH_UBNT_XM
+@@ -71,9 +71,11 @@ config ATH79_MACH_UBNT_XM
        bool "Ubiquiti Networks XM (rev 1.0) board"
        select SOC_AR724X
        select ATH79_DEV_AP9X_PCI if PCI