* [PATCH] mtd: edb7312: correctly pass MTD name to parsers
@ 2011-06-09 10:54 Dmitry Eremin-Solenikov
2011-06-09 12:22 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-09 10:54 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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>
---
drivers/mtd/maps/edb7312.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/maps/edb7312.c b/drivers/mtd/maps/edb7312.c
index fe42a21..b07acd6 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";
--
1.7.5.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mtd: edb7312: correctly pass MTD name to parsers
2011-06-09 10:54 [PATCH] mtd: edb7312: correctly pass MTD name to parsers Dmitry Eremin-Solenikov
@ 2011-06-09 12:22 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2011-06-09 12:22 UTC (permalink / raw)
To: Dmitry Eremin-Solenikov; +Cc: David Woodhouse, linux-mtd
On Thu, 2011-06-09 at 14:54 +0400, Dmitry Eremin-Solenikov wrote:
> 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>
Pushed, thanks!
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-09 12:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-09 10:54 [PATCH] mtd: edb7312: correctly pass MTD name to parsers Dmitry Eremin-Solenikov
2011-06-09 12:22 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).