c2d9b3ffd70a39419bf1f10f249cd2d4e1ebf0f8
[openwrt/openwrt.git] / target / linux / ar7 / patches-3.6 / 320-ac49x-mtd-partitions.patch
1 --- a/drivers/mtd/maps/physmap.c
2 +++ b/drivers/mtd/maps/physmap.c
3 @@ -94,7 +94,7 @@ static const char *rom_probe_types[] = {
4 "map_rom",
5 NULL };
6 static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", "afs",
7 - "ar7part", NULL };
8 + "ac49xpart", "ar7part", NULL };
9
10 static int physmap_flash_probe(struct platform_device *dev)
11 {
12 --- a/drivers/mtd/Kconfig
13 +++ b/drivers/mtd/Kconfig
14 @@ -143,6 +143,11 @@ config MTD_OF_PARTS
15 the partition map from the children of the flash node,
16 as described in Documentation/devicetree/booting-without-of.txt.
17
18 +config MTD_AC49X_PARTS
19 + tristate "AudioCodes AC49X partitioning support"
20 + ---help---
21 + AudioCodes AC49X partitioning support
22 +
23 config MTD_AR7_PARTS
24 tristate "TI AR7 partitioning support"
25 ---help---
26 --- a/drivers/mtd/Makefile
27 +++ b/drivers/mtd/Makefile
28 @@ -9,6 +9,7 @@ mtd-y := mtdcore.o mtdsuper.o mtdconc
29 obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
30 obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
31 obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
32 +obj-$(CONFIG_MTD_AC49X_PARTS) += ac49xpart.o
33 obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
34 obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o titanpart.o
35 obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o