summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files-3.2/arch/mips/ath79/mach-mzk-w300nh.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-01-24 18:40:34 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-01-24 18:40:34 +0000
commit23836d5908db83aece4af60b4ccaabbd32069570 (patch)
tree976c7bfa1c7fcafa217d36d824ee623cbad91e6b /target/linux/ar71xx/files-3.2/arch/mips/ath79/mach-mzk-w300nh.c
parent859c9150777f651e8b9dcf1a770380df1f439acb (diff)
downloadmaster-31e0f0ae-23836d5908db83aece4af60b4ccaabbd32069570.tar.gz
master-31e0f0ae-23836d5908db83aece4af60b4ccaabbd32069570.tar.bz2
master-31e0f0ae-23836d5908db83aece4af60b4ccaabbd32069570.zip
ar71xx: remove hardcoded MTD layout from planex files
SVN-Revision: 29895
Diffstat (limited to 'target/linux/ar71xx/files-3.2/arch/mips/ath79/mach-mzk-w300nh.c')
-rw-r--r--target/linux/ar71xx/files-3.2/arch/mips/ath79/mach-mzk-w300nh.c40
1 files changed, 1 insertions, 39 deletions
diff --git a/target/linux/ar71xx/files-3.2/arch/mips/ath79/mach-mzk-w300nh.c b/target/linux/ar71xx/files-3.2/arch/mips/ath79/mach-mzk-w300nh.c
index 4a6d06b926..4ff19e8841 100644
--- a/target/linux/ar71xx/files-3.2/arch/mips/ath79/mach-mzk-w300nh.c
+++ b/target/linux/ar71xx/files-3.2/arch/mips/ath79/mach-mzk-w300nh.c
@@ -9,9 +9,6 @@
* 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"
@@ -34,41 +31,6 @@
#define MZK_W300NH_KEYS_POLL_INTERVAL 20 /* msecs */
#define MZK_W300NH_KEYS_DEBOUNCE_INTERVAL (3 * MZK_W300NH_KEYS_POLL_INTERVAL)
-static struct mtd_partition mzk_w300nh_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_w300nh_flash_data = {
- .parts = mzk_w300nh_partitions,
- .nr_parts = ARRAY_SIZE(mzk_w300nh_partitions),
-};
-
static struct gpio_led mzk_w300nh_leds_gpio[] __initdata = {
{
.name = "planex:green:status",
@@ -140,7 +102,7 @@ static void __init mzk_w300nh_setup(void)
ath79_register_eth(0);
ath79_register_eth(1);
- ath79_register_m25p80(&mzk_w300nh_flash_data);
+ ath79_register_m25p80(NULL);
ath79_register_leds_gpio(-1, ARRAY_SIZE(mzk_w300nh_leds_gpio),
mzk_w300nh_leds_gpio);