[MTD] Fix ixp4xx partition parsing.

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Sep 22 05:59:02 EDT 2006


Commit:     f40a6f1cc7fe522e51e1ac4c7ab3035a434f2cef
Parent:     f2dd117fa51dd8fc071b1352254c0d14d2399b0a
commit f40a6f1cc7fe522e51e1ac4c7ab3035a434f2cef
Author:     Brian Walsh <brian at walsh.ws>
AuthorDate: Fri Sep 22 10:16:16 2006 +0100
Commit:     David Woodhouse <dwmw2 at infradead.org>
CommitDate: Fri Sep 22 10:16:16 2006 +0100

    [MTD] Fix ixp4xx partition parsing.
    
    If the amount of flash is not divisible by 2 then the mask in
    parse_mtd_partitions would fail to work as designed.  Passing in the base
    address corrects this problem.
    
    Signed-off-by: Brian Walsh <brian at walsh.ws>
    Cc: Deepak Sanexa <dsanexa at mvista.com>
    Cc: Thomas Gleixner <tglx at linutronix.de>
    Signed-off-by: Andrew Morton <akpm at osdl.org>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/maps/ixp4xx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/maps/ixp4xx.c b/drivers/mtd/maps/ixp4xx.c
index 986c586..7a828e3 100644
--- a/drivers/mtd/maps/ixp4xx.c
+++ b/drivers/mtd/maps/ixp4xx.c
@@ -253,7 +253,7 @@ static int ixp4xx_flash_probe(struct pla
 	/* Use the fast version */
 	info->map.write = ixp4xx_write16,
 
-	err = parse_mtd_partitions(info->mtd, probes, &info->partitions, 0);
+	err = parse_mtd_partitions(info->mtd, probes, &info->partitions, dev->resource->start);
 	if (err > 0) {
 		err = add_mtd_partitions(info->mtd, info->partitions, err);
 		if(err)



More information about the linux-mtd-cvs mailing list