[ar7] add support for Linux 3.6
[openwrt/svn-archive/archive.git] / target / linux / ar7 / patches-3.6 / 110-flash.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 - NULL };
8 + "ar7part", NULL };
9
10 static int physmap_flash_probe(struct platform_device *dev)
11 {
12 --- a/drivers/mtd/Makefile
13 +++ b/drivers/mtd/Makefile
14 @@ -10,7 +10,7 @@ obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
15 obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
16 obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
17 obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
18 -obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o
19 +obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o titanpart.o
20 obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o
21 obj-$(CONFIG_MTD_MYLOADER_PARTS) += myloader.o
22
23 --- a/arch/mips/ar7/platform.c
24 +++ b/arch/mips/ar7/platform.c
25 @@ -199,7 +199,7 @@ static struct resource physmap_flash_res
26 .name = "mem",
27 .flags = IORESOURCE_MEM,
28 .start = 0x10000000,
29 - .end = 0x107fffff,
30 + .end = 0x11ffffff,
31 };
32
33 static struct physmap_flash_data physmap_flash_data = {