modernize backfire 10.03 so it can be operational again
[openwrt-10.03/.git] / patches-2.6.23 / 110-flash.patch
1 Index: linux-2.6.23-rc6/drivers/mtd/Kconfig
2 ===================================================================
3 --- linux-2.6.23-rc6.orig/drivers/mtd/Kconfig   2007-09-21 16:23:59.000000000 +0800
4 +++ linux-2.6.23-rc6/drivers/mtd/Kconfig        2007-09-21 16:24:11.000000000 +0800
5 @@ -160,6 +160,12 @@
6           for your particular device. It won't happen automatically. The
7           'armflash' map driver (CONFIG_MTD_ARMFLASH) does this, for example.
8  
9 +config MTD_AR7_PARTS
10 +       tristate "TI AR7 partitioning support"
11 +       depends on MTD_PARTITIONS
12 +       ---help---
13 +         TI AR7 partitioning support
14 +
15  comment "User Modules And Translation Layers"
16  
17  config MTD_CHAR
18 Index: linux-2.6.23-rc6/drivers/mtd/Makefile
19 ===================================================================
20 --- linux-2.6.23-rc6.orig/drivers/mtd/Makefile  2007-09-21 16:23:51.000000000 +0800
21 +++ linux-2.6.23-rc6/drivers/mtd/Makefile       2007-09-21 16:24:11.000000000 +0800
22 @@ -11,6 +11,7 @@
23  obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
24  obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
25  obj-$(CONFIG_MTD_AFS_PARTS)    += afs.o
26 +obj-$(CONFIG_MTD_AR7_PARTS)    += ar7part.o
27  
28  # 'Users' - code which presents functionality to userspace.
29  obj-$(CONFIG_MTD_CHAR)         += mtdchar.o
30 Index: linux-2.6.23-rc6/drivers/mtd/maps/physmap.c
31 ===================================================================
32 --- linux-2.6.23-rc6.orig/drivers/mtd/maps/physmap.c    2007-09-21 16:23:51.000000000 +0800
33 +++ linux-2.6.23-rc6/drivers/mtd/maps/physmap.c 2007-09-21 16:24:11.000000000 +0800
34 @@ -74,7 +74,8 @@
35  
36  static const char *rom_probe_types[] = { "cfi_probe", "jedec_probe", "map_rom", NULL };
37  #ifdef CONFIG_MTD_PARTITIONS
38 -static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", NULL };
39 +static const char *part_probe_types[] = {"cmdlinepart", "RedBoot",
40 +                                       "ar7part", NULL };
41  #endif
42  
43  static int physmap_flash_probe(struct platform_device *dev)