[U-Boot] [PATCH 01/11] misc: Allow child devices

Simon Glass sjg at chromium.org
Thu Dec 27 20:24:36 UTC 2018


Allow misc devices to have children, so that we can use this uclass for
cases where a child device (e.g. I2S) needs to access a misc driver for
transferring data.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 drivers/misc/misc-uclass.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/misc/misc-uclass.c b/drivers/misc/misc-uclass.c
index f240cda5c05..f432bc91997 100644
--- a/drivers/misc/misc-uclass.c
+++ b/drivers/misc/misc-uclass.c
@@ -68,4 +68,5 @@ int misc_set_enabled(struct udevice *dev, bool val)
 UCLASS_DRIVER(misc) = {
 	.id		= UCLASS_MISC,
 	.name		= "misc",
+	.post_bind	= dm_scan_fdt_dev,
 };
-- 
2.20.1.415.g653613c723-goog



More information about the U-Boot mailing list