summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr703n.c
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-12-03 18:13:31 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-12-03 18:13:31 +0000
commit11a837ce029534fc38f6deb2a2f31d80fe5a1f7f (patch)
tree2ebc4ca3a5ea1aa37e7eab071a11661c52071f0c /target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr703n.c
parent17c2fb2fc826af433e21fde62306cb776ae5c287 (diff)
ar71xx: use the tp-link parser on the tp-link boards
Also remove static partition maps. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29416 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr703n.c')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr703n.c39
1 files changed, 4 insertions, 35 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr703n.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr703n.c
index 6ddd33b41..e9c2f25fe 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr703n.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr703n.c
@@ -9,9 +9,6 @@
* by the Free Software Foundation.
*/
-#include <linux/mtd/mtd.h>
-#include <linux/mtd/partitions.h>
-#include <linux/spi/flash.h>
#include <linux/gpio.h>
#include <asm/mach-ar71xx/ar71xx.h>
@@ -32,41 +29,13 @@
#define TL_WR703N_KEYS_POLL_INTERVAL 20 /* msecs */
#define TL_WR703N_KEYS_DEBOUNCE_INTERVAL (3 * TL_WR703N_KEYS_POLL_INTERVAL)
-#ifdef CONFIG_MTD_PARTITIONS
-static struct mtd_partition tl_wr703n_parts[] = {
- {
- .name = "u-boot",
- .offset = 0,
- .size = 0x020000,
- .mask_flags = MTD_WRITEABLE,
- }, {
- .name = "kernel",
- .offset = 0x020000,
- .size = 0x100000,
- }, {
- .name = "rootfs",
- .offset = 0x120000,
- .size = 0x2d0000,
- }, {
- .name = "art",
- .offset = 0x3f0000,
- .size = 0x010000,
- .mask_flags = MTD_WRITEABLE,
- }, {
- .name = "firmware",
- .offset = 0x020000,
- .size = 0x3d0000,
- }
+static const char *tl_wr703n_part_probes[] = {
+ "tp-link",
+ NULL,
};
-#define tl_wr703n_nr_parts ARRAY_SIZE(tl_wr703n_parts)
-#else
-#define tl_wr703n_parts NULL
-#define tl_wr703n_nr_parts 0
-#endif /* CONFIG_MTD_PARTITIONS */
static struct flash_platform_data tl_wr703n_flash_data = {
- .parts = tl_wr703n_parts,
- .nr_parts = tl_wr703n_nr_parts,
+ .part_probes = tl_wr703n_part_probes,
};
static struct gpio_led tl_wr703n_leds_gpio[] __initdata = {