From ba06bbe662827eae889dcf82fbc159f62bb02d81 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Tue, 27 Mar 2012 19:38:01 +0000 Subject: ar71xx: remove the built-in MTD maps of several boards We are passing the MTD layout via the kernel command line, so it makes no sense to duplicate it in mach-* files. The patch removes the built-in MTD maps of the following boards: * AP113 * ALFA N2/N5 * DIR-600 * DIR-615 * DIR-825 * TEW-6{3,5}2BRP * TEW-673GRU * WHR-G301N * WHR-HP-GN * WHR-HP-G300N git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31108 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../ar71xx/files/arch/mips/ath79/mach-ap113.c | 42 +--------------------- 1 file changed, 1 insertion(+), 41 deletions(-) (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-ap113.c') diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-ap113.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-ap113.c index 178815cf91..9b38faa47c 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-ap113.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-ap113.c @@ -8,10 +8,6 @@ * by the Free Software Foundation. */ -#include -#include -#include - #include "dev-eth.h" #include "dev-gpio-buttons.h" #include "dev-leds-gpio.h" @@ -29,42 +25,6 @@ #define AP113_KEYS_POLL_INTERVAL 20 /* msecs */ #define AP113_KEYS_DEBOUNCE_INTERVAL (3 * AP113_KEYS_POLL_INTERVAL) -static struct mtd_partition ap113_parts[] = { - { - .name = "u-boot", - .offset = 0, - .size = 0x010000, - .mask_flags = MTD_WRITEABLE, - }, - { - .name = "rootfs", - .offset = 0x010000, - .size = 0x300000, - }, - { - .name = "uImage", - .offset = 0x300000, - .size = 0x3e0000, - }, - { - .name = "NVRAM", - .offset = 0x3e0000, - .size = 0x010000, - }, - { - .name = "ART", - .offset = 0x3f0000, - .size = 0x010000, - .mask_flags = MTD_WRITEABLE, - }, -}; -#define ap113_nr_parts ARRAY_SIZE(ap113_parts) - -static struct flash_platform_data ap113_flash_data = { - .parts = ap113_parts, - .nr_parts = ap113_nr_parts, -}; - static struct gpio_led ap113_leds_gpio[] __initdata = { { .name = "ap113:green:usb", @@ -98,7 +58,7 @@ static void __init ap113_setup(void) { u8 *mac = (u8 *) KSEG1ADDR(0x1fff0000); - ath79_register_m25p80(&ap113_flash_data); + ath79_register_m25p80(NULL); ath79_register_mdio(0, ~BIT(0)); ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0); -- cgit v1.2.3