39bf83affc52bdc3c4481605a1856a53b2a12213
[openwrt-10.03/.git] / target / linux / ar7 / patches-2.6.26 / 110-flash.patch
1 diff -ruN linux-2.6.26.3.orig/drivers/mtd/Kconfig linux-2.6.26.3/drivers/mtd/Kconfig
2 --- linux-2.6.26.3.orig/drivers/mtd/Kconfig     2008-08-27 19:37:48.000000000 -0700
3 +++ linux-2.6.26.3/drivers/mtd/Kconfig  2008-08-27 19:39:14.000000000 -0700
4 @@ -174,6 +174,12 @@
5         ---help---
6           TI AR7 partitioning support
7  
8 +config MTD_AR7_PARTS
9 +       tristate "TI AR7 partitioning support"
10 +       depends on MTD_PARTITIONS
11 +       ---help---
12 +         TI AR7 partitioning support
13 +
14  comment "User Modules And Translation Layers"
15  
16  config MTD_CHAR
17 diff -ruN linux-2.6.26.3.orig/drivers/mtd/Makefile linux-2.6.26.3/drivers/mtd/Makefile
18 --- linux-2.6.26.3.orig/drivers/mtd/Makefile    2008-08-27 19:37:48.000000000 -0700
19 +++ linux-2.6.26.3/drivers/mtd/Makefile 2008-08-27 19:39:14.000000000 -0700
20 @@ -13,6 +13,7 @@
21  obj-$(CONFIG_MTD_AFS_PARTS)    += afs.o
22  obj-$(CONFIG_MTD_AR7_PARTS)    += ar7part.o
23  obj-$(CONFIG_MTD_OF_PARTS)      += ofpart.o
24 +obj-$(CONFIG_MTD_AR7_PARTS)    += ar7part.o
25  
26  # 'Users' - code which presents functionality to userspace.
27  obj-$(CONFIG_MTD_CHAR)         += mtdchar.o
28 diff -ruN linux-2.6.26.3.orig/drivers/mtd/maps/physmap.c linux-2.6.26.3/drivers/mtd/maps/physmap.c
29 --- linux-2.6.26.3.orig/drivers/mtd/maps/physmap.c      2008-08-27 19:37:48.000000000 -0700
30 +++ linux-2.6.26.3/drivers/mtd/maps/physmap.c   2008-08-27 19:39:14.000000000 -0700
31 @@ -87,7 +87,8 @@
32  
33  static const char *rom_probe_types[] = { "cfi_probe", "jedec_probe", "map_rom", NULL };
34  #ifdef CONFIG_MTD_PARTITIONS
35 -static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", NULL };
36 +static const char *part_probe_types[] = {"cmdlinepart", "RedBoot",
37 +                                       "ar7part", NULL };
38  #endif
39  
40  static int physmap_flash_probe(struct platform_device *dev)