public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Michał Wróbel" <michal.wrobel@flytronic.pl>
To: <linux-mtd@lists.infradead.org>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>,
	Artem Bityutskiy <dedekind1@gmail.com>
Subject: [PATCH] mtd: ixp4xx: fix partition parser argument
Date: Mon, 26 Mar 2012 15:37:36 +0200	[thread overview]
Message-ID: <20120326133735.GA19800@FLYC077.flytronic.local> (raw)

Commit c7975330154af17aecc167b33ca866b6b3d98918 ("mtd: abstract last MTD
partition parser argument") moved the "origin" argument into struct
mtd_part_parser_data, but didn't update its only user: ixp4xx.c.

Signed-off-by: Michał Wróbel <michal.wrobel@flytronic.pl>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: Artem Bityutskiy <dedekind1@gmail.com>
---
 drivers/mtd/maps/ixp4xx.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/maps/ixp4xx.c b/drivers/mtd/maps/ixp4xx.c
index 8b54101..8d6ca57 100644
--- a/drivers/mtd/maps/ixp4xx.c
+++ b/drivers/mtd/maps/ixp4xx.c
@@ -183,6 +183,7 @@ static int ixp4xx_flash_probe(struct platform_device *dev)
 	struct flash_platform_data *plat = dev->dev.platform_data;
 	struct ixp4xx_flash_info *info;
 	int err = -1;
+	struct mtd_part_parser_data ppdata;
 
 	if (!plat)
 		return -ENODEV;
@@ -247,7 +248,8 @@ static int ixp4xx_flash_probe(struct platform_device *dev)
 	/* Use the fast version */
 	info->map.write = ixp4xx_write16;
 
-	err = mtd_device_parse_register(info->mtd, probes, dev->resource->start,
+	ppdata.origin = dev->resource->start;
+	err = mtd_device_parse_register(info->mtd, probes, &ppdata,
 			plat->parts, plat->nr_parts);
 	if (err) {
 		printk(KERN_ERR "Could not parse partitions\n");
-- 
1.7.5.4

             reply	other threads:[~2012-03-26 13:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-26 13:37 Michał Wróbel [this message]
2012-03-26 14:38 ` [PATCH] mtd: ixp4xx: fix partition parser argument Artem Bityutskiy
2012-03-26 15:06   ` Michał Wróbel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120326133735.GA19800@FLYC077.flytronic.local \
    --to=michal.wrobel@flytronic.pl \
    --cc=dbaryshkov@gmail.com \
    --cc=dedekind1@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox