From aec99c9776d33a1c2218f975a02cb1068cdcf579 Mon Sep 17 00:00:00 2001 From: Andreas Dannenberg Date: Mon, 27 Aug 2018 15:57:38 +0530 Subject: [PATCH] dm: firmware: Automatically bind child devices To support scenarios where a firmware device node has subnodes that have their own drivers automatically scan the DT and bind those when the firmware device gets bound. Reviewed-by: Tom Rini Signed-off-by: Andreas Dannenberg Signed-off-by: Lokesh Vutla --- drivers/firmware/firmware-uclass.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/firmware/firmware-uclass.c b/drivers/firmware/firmware-uclass.c index d099235..3d33b6d 100644 --- a/drivers/firmware/firmware-uclass.c +++ b/drivers/firmware/firmware-uclass.c @@ -7,4 +7,7 @@ UCLASS_DRIVER(firmware) = { .id = UCLASS_FIRMWARE, .name = "firmware", +#if CONFIG_IS_ENABLED(OF_CONTROL) + .post_bind = dm_scan_fdt_dev, +#endif };