mtd: pxa2xx-flash.c: It used to fall back to provided table.

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed Dec 7 05:59:01 EST 2011


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=7148b7999277e2794cec90d8cb47d2a238e0bd0d
Commit:     7148b7999277e2794cec90d8cb47d2a238e0bd0d
Parent:     df16c86a56595d1c28e58532ec25dd612c39c6c7
Author:     Jonathan Cameron <jic23 at cam.ac.uk>
AuthorDate: Fri Nov 11 17:06:20 2011 +0000
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Wed Dec 7 10:05:15 2011 +0000

    mtd: pxa2xx-flash.c: It used to fall back to provided table.
    
    Make this work again.
    
    Signed-off-by: Jonathan Cameron <jic23 at cam.ac.uk>
    Acked-by: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/maps/pxa2xx-flash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c
index 411a17d..2a25b67 100644
--- a/drivers/mtd/maps/pxa2xx-flash.c
+++ b/drivers/mtd/maps/pxa2xx-flash.c
@@ -98,7 +98,7 @@ static int __devinit pxa2xx_flash_probe(struct platform_device *pdev)
 	}
 	info->mtd->owner = THIS_MODULE;
 
-	mtd_device_parse_register(info->mtd, probes, 0, NULL, 0);
+	mtd_device_parse_register(info->mtd, probes, 0, flash->parts, flash->nr_parts);
 
 	platform_set_drvdata(pdev, info);
 	return 0;



More information about the linux-mtd-cvs mailing list