From: Simon Glass Date: Thu, 27 Dec 2018 20:24:36 +0000 (-0700) Subject: misc: Allow child devices X-Git-Tag: v2019.04-rc2~19^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e5d611671d10f66b992d74d1769a954c90abd287;p=oweals%2Fu-boot.git 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 --- 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 };