mtd: edb7312: correctly pass MTD name to parsers
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Thu, 9 Jun 2011 10:54:41 +0000 (14:54 +0400)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:02:10 +0000 (15:02 +0300)
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>
drivers/mtd/maps/edb7312.c

index fe42a21..b07acd6 100644 (file)
@@ -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";