aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-12-15 21:34:15 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-12-15 21:34:15 +0000
commit735ae5e71fd10da371d8587f49c1246ad1f8f2f4 (patch)
tree949ba54202c641a5ce5cd8689afaeb4740aae078 /target/linux/ar71xx
parentd955f368eff66d4cb3012b4911d7e3321d1af238 (diff)
downloadupstream-735ae5e71fd10da371d8587f49c1246ad1f8f2f4.tar.gz
upstream-735ae5e71fd10da371d8587f49c1246ad1f8f2f4.tar.bz2
upstream-735ae5e71fd10da371d8587f49c1246ad1f8f2f4.zip
ar71xx: refactor TL-WAx50RE setup code
This way it is a bit easier to add other TP-LINK devices based on the Atheros AP123 reference board with one LAN port. Based-on: http://patchwork.openwrt.org/patch/4506/ Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39071 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
index 2f82f48fbb..c3387b0055 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
@@ -156,10 +156,6 @@ static void __init tl_ap123_setup(void)
ath79_register_eth(0);
ath79_register_wmac(ee, mac);
-
- ath79_register_gpio_keys_polled(-1, TL_WAX50RE_KEYS_POLL_INTERVAL,
- ARRAY_SIZE(tl_wax50re_gpio_keys),
- tl_wax50re_gpio_keys);
}
static void __init tl_wa750re_setup(void)
@@ -167,6 +163,10 @@ static void __init tl_wa750re_setup(void)
tl_ap123_setup();
ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wa750re_leds_gpio),
tl_wa750re_leds_gpio);
+
+ ath79_register_gpio_keys_polled(-1, TL_WAX50RE_KEYS_POLL_INTERVAL,
+ ARRAY_SIZE(tl_wax50re_gpio_keys),
+ tl_wax50re_gpio_keys);
}
MIPS_MACHINE(ATH79_MACH_TL_WA750RE, "TL-WA750RE", "TP-LINK TL-WA750RE",
@@ -177,6 +177,10 @@ static void __init tl_wa850re_setup(void)
tl_ap123_setup();
ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wa850re_leds_gpio),
tl_wa850re_leds_gpio);
+
+ ath79_register_gpio_keys_polled(-1, TL_WAX50RE_KEYS_POLL_INTERVAL,
+ ARRAY_SIZE(tl_wax50re_gpio_keys),
+ tl_wax50re_gpio_keys);
}
MIPS_MACHINE(ATH79_MACH_TL_WA850RE, "TL-WA850RE", "TP-LINK TL-WA850RE",