Changed partitioning not to use at91part.c as opposed to using
[openwrt/svn-archive/archive.git] / target / linux / at91-2.6 / patches / 007-mtd-partition.patch
1 --- linux-2.6.19.2.old/drivers/mtd/devices/at91_dataflash.c 2007-05-01 13:08:03.000000000 +0200
2 +++ linux-2.6.19.2/drivers/mtd/devices/at91_dataflash.c 2007-05-03 09:01:37.000000000 +0200
3 @@ -146,7 +146,7 @@
4 };
5 #endif
6
7 -static const char *part_probes[] = { "cmdlinepart", NULL, };
8 +static const char *part_probes[] = { "cmdlinepart", "at91part", NULL, };
9
10 #endif
11
12 --- linux-2.6.19.2.old/drivers/mtd/Kconfig 2007-05-01 13:08:02.000000000 +0200
13 +++ linux-2.6.19.2/drivers/mtd/Kconfig 2007-05-03 08:58:12.000000000 +0200
14 @@ -157,6 +157,12 @@
15 for your particular device. It won't happen automatically. The
16 'armflash' map driver (CONFIG_MTD_ARMFLASH) does this, for example.
17
18 +config MTD_AT91_PARTS
19 + tristate "Atmel AT91 partitioning support"
20 + depends on MTD_PARTITIONS && ARCH_AT91RM9200 && AT91_SPI
21 + ---help---
22 + Atmel AT91 partitioning support
23 +
24 comment "User Modules And Translation Layers"
25 depends on MTD
26
27 --- linux-2.6.19.2.old/drivers/mtd/Makefile 2007-01-10 20:10:37.000000000 +0100
28 +++ linux-2.6.19.2/drivers/mtd/Makefile 2007-05-03 09:00:00.000000000 +0200
29 @@ -12,6 +12,7 @@
30 obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
31 obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
32 obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
33 +obj-$(CONFIG_MTD_AT91_PARTS) += at91part.o
34
35 # 'Users' - code which presents functionality to userspace.
36 obj-$(CONFIG_MTD_CHAR) += mtdchar.o