ar71xx: remove hardcoded MTD layout from planex files
[openwrt.git] / target / linux / ar71xx / files-3.2 / arch / mips / ath79 / mach-mzk-w04nu.c
index a504366..c2460ce 100644 (file)
@@ -8,9 +8,6 @@
  *  by the Free Software Foundation.
  */
 
  *  by the Free Software Foundation.
  */
 
-#include <linux/mtd/mtd.h>
-#include <linux/mtd/partitions.h>
-
 #include <asm/mach-ath79/ath79.h>
 
 #include "dev-eth.h"
 #include <asm/mach-ath79/ath79.h>
 
 #include "dev-eth.h"
 #define MZK_W04NU_KEYS_POLL_INTERVAL   20      /* msecs */
 #define MZK_W04NU_KEYS_DEBOUNCE_INTERVAL (3 * MZK_W04NU_KEYS_POLL_INTERVAL)
 
 #define MZK_W04NU_KEYS_POLL_INTERVAL   20      /* msecs */
 #define MZK_W04NU_KEYS_DEBOUNCE_INTERVAL (3 * MZK_W04NU_KEYS_POLL_INTERVAL)
 
-static struct mtd_partition mzk_w04nu_partitions[] = {
-       {
-               .name           = "u-boot",
-               .offset         = 0,
-               .size           = 0x040000,
-               .mask_flags     = MTD_WRITEABLE,
-       }, {
-               .name           = "u-boot-env",
-               .offset         = 0x040000,
-               .size           = 0x010000,
-       }, {
-               .name           = "kernel",
-               .offset         = 0x050000,
-               .size           = 0x160000,
-       }, {
-               .name           = "rootfs",
-               .offset         = 0x1b0000,
-               .size           = 0x630000,
-       }, {
-               .name           = "art",
-               .offset         = 0x7e0000,
-               .size           = 0x020000,
-               .mask_flags     = MTD_WRITEABLE,
-       }, {
-               .name           = "firmware",
-               .offset         = 0x050000,
-               .size           = 0x790000,
-       }
-};
-
-static struct flash_platform_data mzk_w04nu_flash_data = {
-       .parts          = mzk_w04nu_partitions,
-       .nr_parts       = ARRAY_SIZE(mzk_w04nu_partitions),
-};
-
 static struct gpio_led mzk_w04nu_leds_gpio[] __initdata = {
        {
                .name           = "planex:green:status",
 static struct gpio_led mzk_w04nu_leds_gpio[] __initdata = {
        {
                .name           = "planex:green:status",
@@ -145,7 +107,7 @@ static void __init mzk_w04nu_setup(void)
        ath79_register_eth(0);
        ath79_register_eth(1);
 
        ath79_register_eth(0);
        ath79_register_eth(1);
 
-       ath79_register_m25p80(&mzk_w04nu_flash_data);
+       ath79_register_m25p80(NULL);
 
        ath79_register_leds_gpio(-1, ARRAY_SIZE(mzk_w04nu_leds_gpio),
                                 mzk_w04nu_leds_gpio);
 
        ath79_register_leds_gpio(-1, ARRAY_SIZE(mzk_w04nu_leds_gpio),
                                 mzk_w04nu_leds_gpio);
This page took 0.027392 seconds and 4 git commands to generate.