ar71xx/cpe210: remove superflous cpe210_setup
authorAlexander Couzens <lynxis@fe80.eu>
Wed, 11 Oct 2017 15:48:36 +0000 (17:48 +0200)
committerAlexander Couzens <lynxis@fe80.eu>
Fri, 13 Oct 2017 21:17:36 +0000 (23:17 +0200)
cpe510_setup is doing the same

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c

index d2dbed1fe286c44d3188262e984253faaee7edba..916c32ec49f026534b7dc5a0b9bd3b42cb41885c 100644 (file)
@@ -132,19 +132,6 @@ static void __init cpe_setup(u8 *mac)
 }
 
 
-static void __init cpe210_setup(void)
-{
-       u8 *mac = (u8 *) KSEG1ADDR(0x1f830008);
-       u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000);
-
-       ath79_register_leds_gpio(-1, ARRAY_SIZE(cpe510_leds_gpio),
-                                cpe510_leds_gpio);
-
-       cpe_setup(mac);
-
-       ath79_register_wmac(ee, mac);
-}
-
 static void __init cpe510_setup(void)
 {
        u8 *mac = (u8 *) KSEG1ADDR(0x1f830008);
@@ -172,7 +159,7 @@ static void __init wbs_setup(void)
 }
 
 MIPS_MACHINE(ATH79_MACH_CPE210, "CPE210", "TP-LINK CPE210/220",
-            cpe210_setup);
+            cpe510_setup);
 
 MIPS_MACHINE(ATH79_MACH_CPE510, "CPE510", "TP-LINK CPE510/520",
             cpe510_setup);