regulator: rpm-smd-regulator: move regulator init to arch_initcall

RPM regulator initialization is done at module_init level which is
late in the boot-up sequence and drivers dependent on regulators
do probe deferral.
Move RPM regulator initialization to arch_init level to minimize
probe deferrals by dependent drivers.

Change-Id: I3e0bc7cb46a90eb62418122869c70345da9217ee
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
This commit is contained in:
Ashay Jaiswal 2014-03-06 06:01:55 +05:30
parent 5b1028b642
commit de54c8d801

View file

@ -1715,7 +1715,7 @@ static void __exit rpm_vreg_exit(void)
platform_driver_unregister(&rpm_vreg_resource_driver);
}
module_init(rpm_smd_regulator_driver_init);
arch_initcall(rpm_smd_regulator_driver_init);
module_exit(rpm_vreg_exit);
MODULE_LICENSE("GPL v2");