[ar71xx] move the trx parser out from the patch
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / patches-2.6.28 / 109-mtd-wrt160nl-trx-parser.patch
1 --- a/drivers/mtd/devices/m25p80.c
2 +++ b/drivers/mtd/devices/m25p80.c
3 @@ -735,6 +735,9 @@ static int __devinit m25p_probe(struct s
4 #ifdef CONFIG_MTD_REDBOOT_PARTS
5 "RedBoot",
6 #endif
7 +#ifdef CONFIG_MTD_WRT160NL_PARTS
8 + "wrt160nl",
9 +#endif
10 NULL, };
11
12 nr_parts = parse_mtd_partitions(&flash->mtd,
13 --- a/drivers/mtd/Kconfig
14 +++ b/drivers/mtd/Kconfig
15 @@ -172,6 +172,12 @@ config MTD_AR7_PARTS
16 ---help---
17 TI AR7 partitioning support
18
19 +config MTD_WRT160NL_PARTS
20 + tristate "Linksys WRT160NL partitioning support"
21 + depends on MTD_PARTITIONS && AR71XX_MACH_WRT160NL
22 + ---help---
23 + Linksys WRT160NL partitioning support
24 +
25 config MTD_MYLOADER_PARTS
26 tristate "MyLoader partition parsing"
27 depends on MTD_PARTITIONS && (ADM5120 || ATHEROS || ATHEROS_AR71XX)
28 --- a/drivers/mtd/Makefile
29 +++ b/drivers/mtd/Makefile
30 @@ -12,6 +12,7 @@ obj-$(CONFIG_MTD_REDBOOT_PARTS) += redbo
31 obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
32 obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
33 obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o
34 +obj-$(CONFIG_MTD_WRT160NL_PARTS) += wrt160nl_part.o
35 obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
36 obj-$(CONFIG_MTD_MYLOADER_PARTS) += myloader.o
37