Skip to content

Commit

Permalink
mtd: edb7312: correctly pass MTD name to parsers
Browse files Browse the repository at this point in the history
cmdline partitions parser expects MTD name at mtd->name, instead of
origin, while edb7312 passes MTDID as origin. Fix that.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 3a8fb12 commit d117040
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/mtd/maps/edb7312.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ static int __init init_edb7312nor(void)
}
if (mymtd) {
mymtd->owner = THIS_MODULE;
mymtd->name = MTDID;

mtd_parts_nb = parse_mtd_partitions(mymtd, probes, &mtd_parts, MTDID);
mtd_parts_nb = parse_mtd_partitions(mymtd, probes, &mtd_parts, 0);
if (mtd_parts_nb > 0)
part_type = "detected";

Expand Down

0 comments on commit d117040

Please sign in to comment.