X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Ffiles%2Farch%2Fmips%2Far71xx%2Fmach-tl-wa901nd.c;h=7bc666a9f9ecc34c64c93d2614c0c44a4497e858;hb=11a837ce029534fc38f6deb2a2f31d80fe5a1f7f;hp=ebe7ab5c7d206267c7796d7baabcdb5d5c93edde;hpb=17c2fb2fc826af433e21fde62306cb776ae5c287;p=openwrt.git diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c index ebe7ab5c7d..7bc666a9f9 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c @@ -9,9 +9,6 @@ * by the Free Software Foundation. */ -#include -#include - #include #include "machtype.h" @@ -30,39 +27,13 @@ #define TL_WA901ND_KEYS_POLL_INTERVAL 20 /* msecs */ #define TL_WA901ND_KEYS_DEBOUNCE_INTERVAL (3 * TL_WA901ND_KEYS_POLL_INTERVAL) -#ifdef CONFIG_MTD_PARTITIONS -static struct mtd_partition tl_wa901nd_partitions[] = { - { - .name = "u-boot", - .offset = 0, - .size = 0x020000, - .mask_flags = MTD_WRITEABLE, - }, { - .name = "kernel", - .offset = 0x020000, - .size = 0x140000, - }, { - .name = "rootfs", - .offset = 0x160000, - .size = 0x290000, - }, { - .name = "art", - .offset = 0x3f0000, - .size = 0x010000, - .mask_flags = MTD_WRITEABLE, - }, { - .name = "firmware", - .offset = 0x020000, - .size = 0x3d0000, - } +static const char *tl_wa901nd_part_probes[] = { + "tp-link", + NULL, }; -#endif /* CONFIG_MTD_PARTITIONS */ static struct flash_platform_data tl_wa901nd_flash_data = { -#ifdef CONFIG_MTD_PARTITIONS - .parts = tl_wa901nd_partitions, - .nr_parts = ARRAY_SIZE(tl_wa901nd_partitions), -#endif + .part_probes = tl_wa901nd_part_probes, }; static struct gpio_led tl_wa901nd_leds_gpio[] __initdata = {