From fafff4977d7afc84135064fff59c412c6df970a8 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Wed, 11 Oct 2017 17:48:36 +0200 Subject: [PATCH] ar71xx/cpe210: remove superflous cpe210_setup cpe510_setup is doing the same Signed-off-by: Alexander Couzens --- .../ar71xx/files/arch/mips/ath79/mach-cpe510.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c index d2dbed1fe2..916c32ec49 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c @@ -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); -- 2.30.2