diff options
author | Simon Glass <sjg@chromium.org> | 2018-12-27 23:24:36 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-02-09 22:50:22 +0300 |
commit | e5d611671d10f66b992d74d1769a954c90abd287 (patch) | |
tree | 40a6a67c7c597ed4ed2ab8396f3f65eeb6b123a5 /drivers | |
parent | 58804b8cf291c56eee9fbfbfdb7c10e8a238444b (diff) | |
download | u-boot-e5d611671d10f66b992d74d1769a954c90abd287.tar.xz |
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')
-rw-r--r-- | drivers/misc/misc-uclass.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/misc-uclass.c b/drivers/misc/misc-uclass.c index f240cda5c0..55381edc98 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 }; |