提交 bf011f2e 编写于 作者: D Daniel Schwierzeck 提交者: David Woodhouse

mtd: mips: lantiq: reintroduce support for cmdline partitions

Since commit ca97dec2 the
command line parsing of MTD partitions does not work anymore.
Signed-off-by: NDaniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Signed-off-by: NJohn Crispin <blogic@openwrt.org>
Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: stable@kernel.org [3.2+]
Acked-by: NJohn Crispin <blogic@openwrt.org>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 d42b5de3
...@@ -45,6 +45,7 @@ struct ltq_mtd { ...@@ -45,6 +45,7 @@ struct ltq_mtd {
}; };
static char ltq_map_name[] = "ltq_nor"; static char ltq_map_name[] = "ltq_nor";
static const char *ltq_probe_types[] __devinitconst = { "cmdlinepart", NULL };
static map_word static map_word
ltq_read16(struct map_info *map, unsigned long adr) ltq_read16(struct map_info *map, unsigned long adr)
...@@ -168,7 +169,7 @@ ltq_mtd_probe(struct platform_device *pdev) ...@@ -168,7 +169,7 @@ ltq_mtd_probe(struct platform_device *pdev)
cfi->addr_unlock1 ^= 1; cfi->addr_unlock1 ^= 1;
cfi->addr_unlock2 ^= 1; cfi->addr_unlock2 ^= 1;
err = mtd_device_parse_register(ltq_mtd->mtd, NULL, 0, err = mtd_device_parse_register(ltq_mtd->mtd, ltq_probe_types, 0,
ltq_mtd_data->parts, ltq_mtd_data->nr_parts); ltq_mtd_data->parts, ltq_mtd_data->nr_parts);
if (err) { if (err) {
dev_err(&pdev->dev, "failed to add partitions\n"); dev_err(&pdev->dev, "failed to add partitions\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册