Modified patches for 2.6.22.1 kernel
[openwrt-10.03/.git] / target / linux / at91-2.6 / patches-2.6.22 / 007-mtd-partition.patch
1 diff -urN linux-2.6.22.1.old/drivers/mtd/devices/at91_dataflash.c linux-2.6.22.1/drivers/mtd/devices/at91_dataflash.c
2 --- linux-2.6.22.1.old/drivers/mtd/devices/at91_dataflash.c     2007-07-29 07:50:05.000000000 +0200
3 +++ linux-2.6.22.1/drivers/mtd/devices/at91_dataflash.c 2007-07-29 07:56:11.000000000 +0200
4 @@ -173,7 +173,7 @@
5  };
6  #endif
7  
8 -static const char *part_probes[] = { "cmdlinepart", NULL, };
9 +static const char *part_probes[] = { "cmdlinepart", "at91part", NULL, };
10  
11  #endif
12  
13 diff -urN linux-2.6.22.1.old/drivers/mtd/Kconfig linux-2.6.22.1/drivers/mtd/Kconfig
14 --- linux-2.6.22.1.old/drivers/mtd/Kconfig      2007-07-29 07:54:27.000000000 +0200
15 +++ linux-2.6.22.1/drivers/mtd/Kconfig  2007-07-29 07:55:21.000000000 +0200
16 @@ -160,6 +160,12 @@
17           for your particular device. It won't happen automatically. The
18           'armflash' map driver (CONFIG_MTD_ARMFLASH) does this, for example.
19  
20 +config MTD_AT91_PARTS
21 +       tristate "Atmel AT91 partitioning support"
22 +       depends on MTD_PARTITIONS && ARCH_AT91RM9200 && AT91_SPI
23 +       ---help---
24 +         Atmel AT91 partitioning support
25 +       
26  comment "User Modules And Translation Layers"
27  
28  config MTD_CHAR
29 diff -urN linux-2.6.22.1.old/drivers/mtd/Makefile linux-2.6.22.1/drivers/mtd/Makefile
30 --- linux-2.6.22.1.old/drivers/mtd/Makefile     2007-07-10 20:56:30.000000000 +0200
31 +++ linux-2.6.22.1/drivers/mtd/Makefile 2007-07-29 07:55:39.000000000 +0200
32 @@ -11,6 +11,7 @@
33  obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
34  obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
35  obj-$(CONFIG_MTD_AFS_PARTS)    += afs.o
36 +obj-$(CONFIG_MTD_AT91_PARTS)   += at91part.o
37  
38  # 'Users' - code which presents functionality to userspace.
39  obj-$(CONFIG_MTD_CHAR)         += mtdchar.o