[U-Boot] [PATCH v9 18/21] dm: mtd: Add post_bind

Jagan Teki jagan at openedev.com
Sun Oct 30 19:23:50 CET 2016


Add .post_bind on mtd-uclass driver

Signed-off-by: Jagan Teki <jagan at openedev.com>
---
 drivers/mtd/mtd-uclass.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mtd/mtd-uclass.c b/drivers/mtd/mtd-uclass.c
index 5922b70..8eb6e8f 100644
--- a/drivers/mtd/mtd-uclass.c
+++ b/drivers/mtd/mtd-uclass.c
@@ -11,6 +11,8 @@
 #include <mtd.h>
 #include <linux/log2.h>
 
+#include <dm/device-internal.h>
+
 int dm_mtd_read(struct udevice *dev, loff_t from, size_t len, size_t *retlen,
 		u_char *buf)
 {
@@ -90,5 +92,6 @@ UCLASS_DRIVER(mtd) = {
 	.id		= UCLASS_MTD,
 	.name		= "mtd",
 	.flags		= DM_UC_FLAG_SEQ_ALIAS,
+	.post_bind	= dm_scan_fdt_dev,
 	.per_device_auto_alloc_size = sizeof(struct mtd_info),
 };
-- 
2.7.4



More information about the U-Boot mailing list