Skip to content

Commit

Permalink
mtd: mips: lantiq: reintroduce support for cmdline partitions
Browse files Browse the repository at this point in the history
Since commit ca97dec the
command line parsing of MTD partitions does not work anymore.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: stable@kernel.org [3.2+]
Acked-by: John Crispin <blogic@openwrt.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Daniel Schwierzeck authored and David Woodhouse committed Mar 26, 2012
1 parent d42b5de commit bf011f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/mtd/maps/lantiq-flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ struct ltq_mtd {
};

static char ltq_map_name[] = "ltq_nor";
static const char *ltq_probe_types[] __devinitconst = { "cmdlinepart", NULL };

static map_word
ltq_read16(struct map_info *map, unsigned long adr)
Expand Down Expand Up @@ -168,7 +169,7 @@ ltq_mtd_probe(struct platform_device *pdev)
cfi->addr_unlock1 ^= 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);
if (err) {
dev_err(&pdev->dev, "failed to add partitions\n");
Expand Down

0 comments on commit bf011f2

Please sign in to comment.