1 --- a/drivers/mtd/devices/m25p80.c
2 +++ b/drivers/mtd/devices/m25p80.c
3 @@ -984,6 +984,16 @@ static int __devinit m25p_probe(struct s
4 part_probes, &parts, 0);
8 +#ifdef CONFIG_MTD_WRT160NL_PARTS
10 + static const char *part_probes[]
11 + = { "wrt160nl", NULL, };
13 + nr_parts = parse_mtd_partitions(&flash->mtd,
14 + part_probes, &parts, 0);
17 if (nr_parts <= 0 && data && data->parts) {
19 nr_parts = data->nr_parts;
20 --- a/drivers/mtd/Kconfig
21 +++ b/drivers/mtd/Kconfig
22 @@ -184,6 +184,12 @@ config MTD_AR7_PARTS
24 endif # MTD_PARTITIONS
26 +config MTD_WRT160NL_PARTS
27 + tristate "Linksys WRT160NL partitioning support"
28 + depends on MTD_PARTITIONS && AR71XX_MACH_WRT160NL
30 + Linksys WRT160NL partitioning support
32 config MTD_MYLOADER_PARTS
33 tristate "MyLoader partition parsing"
34 depends on MTD_PARTITIONS && (ADM5120 || ATHEROS_AR231X || ATHEROS_AR71XX)
35 --- a/drivers/mtd/Makefile
36 +++ b/drivers/mtd/Makefile
37 @@ -13,6 +13,7 @@ obj-$(CONFIG_MTD_REDBOOT_PARTS) += redbo
38 obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
39 obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
40 obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o
41 +obj-$(CONFIG_MTD_WRT160NL_PARTS) += wrt160nl_part.o
42 obj-$(CONFIG_MTD_MYLOADER_PARTS) += myloader.o
44 # 'Users' - code which presents functionality to userspace.