diff mbox series

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

Message ID 20181227202446.229042-2-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show
Series sound: Add sound support for Nyan | expand

Commit Message

Simon Glass Dec. 27, 2018, 8:24 p.m. UTC
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>
---

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

Comments

Simon Glass Jan. 21, 2019, 11:42 p.m. UTC | #1
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>
---

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

Applied to u-boot-dm, thanks!
diff mbox series

Patch

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,
 };