]> Pileus Git - ~andy/linux/blobdiff - drivers/mtd/maps/edb7312.c
mtd: edb7312: correctly pass MTD name to parsers
[~andy/linux] / drivers / mtd / maps / edb7312.c
index fe42a212bb3ebfdc170dcdb5cee1e14f384849dd..b07acd69277a3a694107dae9b064d199b1fbb689 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";