[lantiq] bump kernel to 3.2.12
[openwrt/svn-archive/archive.git] / target / linux / lantiq / patches-3.2 / 0003-MTD-MIPS-lantiq-reintroduce-support-for-cmdline-part.patch
1 From 63e9d017ce90dc1cd0822bace72e4e391feafdab Mon Sep 17 00:00:00 2001
2 From: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
3 Date: Fri, 17 Feb 2012 22:32:18 +0100
4 Subject: [PATCH 03/70] MTD: MIPS: lantiq: reintroduce support for cmdline
5 partitions
6
7 Since commit ca97dec2ab5c87e9fbdf7e882e1820004a3966fa the
8 command line parsing of MTD partitions does not work anymore.
9
10 Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
11 Signed-off-by: John Crispin <blogic@openwrt.org>
12 ---
13 drivers/mtd/maps/lantiq-flash.c | 3 ++-
14 1 files changed, 2 insertions(+), 1 deletions(-)
15
16 diff --git a/drivers/mtd/maps/lantiq-flash.c b/drivers/mtd/maps/lantiq-flash.c
17 index 4f10e27..764d468 100644
18 --- a/drivers/mtd/maps/lantiq-flash.c
19 +++ b/drivers/mtd/maps/lantiq-flash.c
20 @@ -45,6 +45,7 @@ struct ltq_mtd {
21 };
22
23 static char ltq_map_name[] = "ltq_nor";
24 +static const char *ltq_probe_types[] __devinitconst = { "cmdlinepart", NULL };
25
26 static map_word
27 ltq_read16(struct map_info *map, unsigned long adr)
28 @@ -168,7 +169,7 @@ ltq_mtd_probe(struct platform_device *pdev)
29 cfi->addr_unlock1 ^= 1;
30 cfi->addr_unlock2 ^= 1;
31
32 - err = mtd_device_parse_register(ltq_mtd->mtd, NULL, 0,
33 + err = mtd_device_parse_register(ltq_mtd->mtd, ltq_probe_types, 0,
34 ltq_mtd_data->parts, ltq_mtd_data->nr_parts);
35 if (err) {
36 dev_err(&pdev->dev, "failed to add partitions\n");
37 --
38 1.7.7.1
39