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>
This commit is contained in:
parent
58804b8cf2
commit
e5d611671d
@ -68,4 +68,7 @@ int misc_set_enabled(struct udevice *dev, bool val)
|
|||||||
UCLASS_DRIVER(misc) = {
|
UCLASS_DRIVER(misc) = {
|
||||||
.id = UCLASS_MISC,
|
.id = UCLASS_MISC,
|
||||||
.name = "misc",
|
.name = "misc",
|
||||||
|
#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)
|
||||||
|
.post_bind = dm_scan_fdt_dev,
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user