[PATCH] mtd: ixp4xx: fix partition parser argument

Michał Wróbel michal.wrobel at flytronic.pl
Mon Mar 26 09:37:36 EDT 2012


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 at flytronic.pl>
Cc: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
Cc: Artem Bityutskiy <dedekind1 at 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




More information about the linux-mtd mailing list