[PATCH 03/10] mtd: Add devicetree partition parsing

Sascha Hauer s.hauer at pengutronix.de
Tue Jul 16 10:05:59 EDT 2013


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/mtd/core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/core.c b/drivers/mtd/core.c
index 37f4428..f46ab46 100644
--- a/drivers/mtd/core.c
+++ b/drivers/mtd/core.c
@@ -365,6 +365,7 @@ int add_mtd_device(struct mtd_info *mtd, char *devname)
 	}
 
 	devfs_create(&mtd->cdev);
+	of_parse_partitions(&mtd->cdev, mtd->parent->device_node);
 
 	list_for_each_entry(hook, &mtd_register_hooks, hook)
 		if (hook->add_mtd_device)
-- 
1.8.3.2




More information about the barebox mailing list