aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/misc-uclass.c
diff options
context:
space:
mode:
authorSimon Glass2018-12-27 13:24:36 -0700
committerSimon Glass2019-02-09 12:50:22 -0700
commite5d611671d10f66b992d74d1769a954c90abd287 (patch)
tree40a6a67c7c597ed4ed2ab8396f3f65eeb6b123a5 /drivers/misc/misc-uclass.c
parent58804b8cf291c56eee9fbfbfdb7c10e8a238444b (diff)
misc: Allow child devices
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@chromium.org>
Diffstat (limited to 'drivers/misc/misc-uclass.c')
-rw-r--r--drivers/misc/misc-uclass.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/misc-uclass.c b/drivers/misc/misc-uclass.c
index f240cda5c05..55381edc980 100644
--- a/drivers/misc/misc-uclass.c
+++ b/drivers/misc/misc-uclass.c
@@ -68,4 +68,7 @@ int misc_set_enabled(struct udevice *dev, bool val)
UCLASS_DRIVER(misc) = {
.id = UCLASS_MISC,
.name = "misc",
+#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)
+ .post_bind = dm_scan_fdt_dev,
+#endif
};