public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] mtd: ixp4xx: fix partition parser argument
@ 2012-03-26 13:37 Michał Wróbel
  2012-03-26 14:38 ` Artem Bityutskiy
  0 siblings, 1 reply; 3+ messages in thread
From: Michał Wróbel @ 2012-03-26 13:37 UTC (permalink / raw)
  To: linux-mtd; +Cc: Dmitry Eremin-Solenikov, Artem Bityutskiy

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] mtd: ixp4xx: fix partition parser argument
  2012-03-26 13:37 [PATCH] mtd: ixp4xx: fix partition parser argument Michał Wróbel
@ 2012-03-26 14:38 ` Artem Bityutskiy
  2012-03-26 15:06   ` Michał Wróbel
  0 siblings, 1 reply; 3+ messages in thread
From: Artem Bityutskiy @ 2012-03-26 14:38 UTC (permalink / raw)
  To: Michał Wróbel; +Cc: Dmitry Eremin-Solenikov, linux-mtd

[-- Attachment #1: Type: text/plain, Size: 756 bytes --]

On Mon, 2012-03-26 at 15:37 +0200, Michał Wróbel wrote:
> 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(-)

Thanks, but we already have a fix scheduled in the l2-mtd.git tree:

http://git.infradead.org/users/dedekind/l2-mtd.git/commit/87cd5901e82658b49357f41d27b0acbe454b1a3f

-- 
Best Regards,
Artem Bityutskiy

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] mtd: ixp4xx: fix partition parser argument
  2012-03-26 14:38 ` Artem Bityutskiy
@ 2012-03-26 15:06   ` Michał Wróbel
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Wróbel @ 2012-03-26 15:06 UTC (permalink / raw)
  To: dedekind1; +Cc: Dmitry Eremin-Solenikov, linux-mtd

On 26.03.2012 16:38, Artem Bityutskiy wrote:
> On Mon, 2012-03-26 at 15:37 +0200, Michał Wróbel wrote:
>> 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(-)
> Thanks, but we already have a fix scheduled in the l2-mtd.git tree:
>
> http://git.infradead.org/users/dedekind/l2-mtd.git/commit/87cd5901e82658b49357f41d27b0acbe454b1a3f
Oh, that's right. I should have searched for an existing solution before
finding it on my own.

-- 
Kind regards,
Michał Wróbel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-26 15:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-26 13:37 [PATCH] mtd: ixp4xx: fix partition parser argument Michał Wróbel
2012-03-26 14:38 ` Artem Bityutskiy
2012-03-26 15:06   ` Michał Wróbel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox