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

Jonathan Cameron jic23 at kernel.org
Fri Nov 11 12:06:20 EST 2011


From: Jonathan Cameron <jic23 at cam.ac.uk>

Make this work again.

Signed-off-by: Jonathan Cameron <jic23 at cam.ac.uk>
---
 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;
-- 
1.7.7.2




More information about the linux-mtd mailing list