X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Ffiles%2Farch%2Fmips%2Fath79%2Fmach-wnr2000.c;h=6e3becab3a0fee86709d5074f4003dfcdad5dca1;hp=b4da7ece323bb0070cde755d7a0e8014d0e31be1;hb=fd62fa752bbff9ae5277098152e7960a14d241e1;hpb=c9a9f9b8cec90b52a80714319cabd0507f119335 diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000.c index b4da7ece32..6e3becab3a 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000.c @@ -32,49 +32,6 @@ #define WNR2000_KEYS_POLL_INTERVAL 20 /* msecs */ #define WNR2000_KEYS_DEBOUNCE_INTERVAL (3 * WNR2000_KEYS_POLL_INTERVAL) -static struct mtd_partition wnr2000_partitions[] = { - { - .name = "u-boot", - .offset = 0, - .size = 0x040000, - .mask_flags = MTD_WRITEABLE, - }, { - .name = "u-boot-env", - .offset = 0x040000, - .size = 0x010000, - }, { - .name = "rootfs", - .offset = 0x050000, - .size = 0x240000, - }, { - .name = "user-config", - .offset = 0x290000, - .size = 0x010000, - }, { - .name = "uImage", - .offset = 0x2a0000, - .size = 0x120000, - }, { - .name = "language_table", - .offset = 0x3c0000, - .size = 0x020000, - }, { - .name = "rootfs_checksum", - .offset = 0x3e0000, - .size = 0x010000, - }, { - .name = "art", - .offset = 0x3f0000, - .size = 0x010000, - .mask_flags = MTD_WRITEABLE, - } -}; - -static struct flash_platform_data wnr2000_flash_data = { - .parts = wnr2000_partitions, - .nr_parts = ARRAY_SIZE(wnr2000_partitions), -}; - static struct gpio_led wnr2000_leds_gpio[] __initdata = { { .name = "netgear:green:power", @@ -130,7 +87,7 @@ static void __init wnr2000_setup(void) ath79_register_eth(0); ath79_register_eth(1); - ath79_register_m25p80(&wnr2000_flash_data); + ath79_register_m25p80(NULL); ath79_register_leds_gpio(-1, ARRAY_SIZE(wnr2000_leds_gpio), wnr2000_leds_gpio);