From f32ec31b3b3c422502de66dbc5d219b147ca3830 Mon Sep 17 00:00:00 2001 From: juhosg Date: Mon, 25 Jan 2010 14:24:48 +0000 Subject: ar71xx: merge generic machine code into setup.c git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19325 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig | 4 ---- .../linux/ar71xx/files/arch/mips/ar71xx/Makefile | 1 - .../ar71xx/files/arch/mips/ar71xx/mach-generic.c | 23 ---------------------- target/linux/ar71xx/files/arch/mips/ar71xx/setup.c | 8 ++++++++ 4 files changed, 8 insertions(+), 28 deletions(-) delete mode 100644 target/linux/ar71xx/files/arch/mips/ar71xx/mach-generic.c (limited to 'target/linux/ar71xx/files') diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig b/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig index 29c5590c8d..50ae98faea 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig @@ -76,10 +76,6 @@ config AR71XX_MACH_WZR_HP_G300NH select AR71XX_DEV_USB default y -config AR71XX_MACH_GENERIC - bool "Generic AR71xx based machine support" - default y - config AR71XX_MACH_WP543 bool "Compex WP543/WPJ543 board support" select MYLOADER diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/Makefile b/target/linux/ar71xx/files/arch/mips/ar71xx/Makefile index bf13b8d6e0..13b5c41fe1 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/Makefile +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/Makefile @@ -31,7 +31,6 @@ obj-$(CONFIG_AR71XX_MACH_AW_NR580) += mach-aw-nr580.o obj-$(CONFIG_AR71XX_MACH_DIR_600_A1) += mach-dir-600-a1.o obj-$(CONFIG_AR71XX_MACH_DIR_615_C1) += mach-dir-615-c1.o obj-$(CONFIG_AR71XX_MACH_DIR_825_B1) += mach-dir-825-b1.o -obj-$(CONFIG_AR71XX_MACH_GENERIC) += mach-generic.o obj-$(CONFIG_AR71XX_MACH_MZK_W04NU) += mach-mzk-w04nu.o obj-$(CONFIG_AR71XX_MACH_MZK_W300NH) += mach-mzk-w300nh.o obj-$(CONFIG_AR71XX_MACH_PB42) += mach-pb42.o diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-generic.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-generic.c deleted file mode 100644 index 8dfa6405ec..0000000000 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-generic.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Generic AR71xx machine support - * - * Copyright (C) 2008 Gabor Juhos - * Copyright (C) 2008 Imre Kaloz - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 as published - * by the Free Software Foundation. - */ - -#include - -#include -#include "machtype.h" - -static void __init ar71xx_generic_init(void) -{ - /* Nothing to do */ -} - -MIPS_MACHINE(AR71XX_MACH_GENERIC, "Generic", "Generic AR71xx board", - ar71xx_generic_init); diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c b/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c index f23592223a..1d9feda67b 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c @@ -288,3 +288,11 @@ static int __init ar71xx_machine_setup(void) } arch_initcall(ar71xx_machine_setup); + +static void __init ar71xx_generic_init(void) +{ + /* Nothing to do */ +} + +MIPS_MACHINE(AR71XX_MACH_GENERIC, "Generic", "Generic AR71xx board", + ar71xx_generic_init); -- cgit v1.2.3