]> Git Repo - linux.git/commitdiff
regulator: core: Disable unused regulators after deferred probing is done
authorSaravana Kannan <[email protected]>
Wed, 23 Apr 2014 23:10:50 +0000 (18:10 -0500)
committerMark Brown <[email protected]>
Sun, 1 Jun 2014 18:16:12 +0000 (19:16 +0100)
regulator_init_complete does a scan of regulators which dont have
always-on or consumers are automatically disabled as being unused.
However, with deferred probing, late_initcall() is too soon to
declare a regulator as unused as the regulator itself might not
have registered due to defferal - Example: A regulator deffered due
to i2bus not available which in turn is deffered due to pinctrl
availability.

Since deferred probing is done in late_initcall(), do the cleanup of
unused regulators by regulator_init_complete in late_initcall_sync
instead of late_initcall.

Cc: Liam Girdwood <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Markus Pargmann <[email protected]>
Signed-off-by: Saravana Kannan <[email protected]>
[[email protected]: minor rewording]
Signed-off-by: Nishanth Menon <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
drivers/regulator/core.c

index e3cb9b66731f7f42e5119035c121a770defd3b7d..236ca3f1df73d3fc0ed26a82d942a7b1be33f3cd 100644 (file)
@@ -3871,4 +3871,4 @@ unlock:
 
        return 0;
 }
-late_initcall(regulator_init_complete);
+late_initcall_sync(regulator_init_complete);
This page took 0.061862 seconds and 4 git commands to generate.