diff --git a/drivers/base/dd.c b/drivers/base/dd.c index e3bbed8a617c257373a1fa2d75318d9ff930601a..61d3e1b4069487c700b18f210601f628917f1ec4 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -172,6 +172,8 @@ static int deferred_probe_initcall(void) driver_deferred_probe_enable = true; driver_deferred_probe_trigger(); + /* Sort as many dependencies as possible before exiting initcalls */ + flush_workqueue(deferred_wq); return 0; } late_initcall(deferred_probe_initcall);