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
7 +#ifdef CONFIG_MTD_WRT160NL_PARTS
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
17 TI AR7 partitioning support
19 +config MTD_WRT160NL_PARTS
20 + tristate "Linksys WRT160NL partitioning support"
21 + depends on MTD_PARTITIONS && AR71XX_MACH_WRT160NL
23 + Linksys WRT160NL partitioning support
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