summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2011-06-09 12:54:41 +0200
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 14:02:10 +0200
commitd117040be074fd1c019b751515f79efe99cd7d76 (patch)
treead096cfb9fb0841c34f671ab6d324dfe49bf181d /drivers/mtd/maps
parentmtd: mtd_dataflash.c: use mtd_device_parse_register (diff)
downloadlinux-d117040be074fd1c019b751515f79efe99cd7d76.tar.xz
linux-d117040be074fd1c019b751515f79efe99cd7d76.zip
mtd: edb7312: correctly pass MTD name to parsers
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>
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r--drivers/mtd/maps/edb7312.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/maps/edb7312.c b/drivers/mtd/maps/edb7312.c
index fe42a212bb3e..b07acd69277a 100644
--- a/drivers/mtd/maps/edb7312.c
+++ b/drivers/mtd/maps/edb7312.c
@@ -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";