From: Ranjani Vaidyanathan Date: Sun, 11 Dec 2011 06:12:37 +0000 (-0600) Subject: ENGR00170005: Enable DVFS-CORE at boot X-Git-Tag: v3.0.35-fsl~1794 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=44c040fb03c2717436c5c3df8699e0cc4dd2dbfc;p=karo-tx-linux.git ENGR00170005: Enable DVFS-CORE at boot DVFS-CORE should be enabled at boot by default. Signed-off-by: Ranjani Vaidyanathan --- diff --git a/arch/arm/plat-mxc/dvfs_core.c b/arch/arm/plat-mxc/dvfs_core.c index 183a6dd4b0bf..7721832ebb11 100755 --- a/arch/arm/plat-mxc/dvfs_core.c +++ b/arch/arm/plat-mxc/dvfs_core.c @@ -1075,6 +1075,12 @@ static int __init dvfs_init(void) dvfs_core_is_active = 0; printk(KERN_INFO "DVFS driver module loaded\n"); + + /* Enable DVFS by default. */ + if (start_dvfs() != 0) + printk(KERN_ERR "Failed to start DVFS\n"); + printk(KERN_INFO "DVFS driver Enabled\n"); + return 0; } @@ -1099,7 +1105,7 @@ static void __exit dvfs_cleanup(void) } -module_init(dvfs_init); +late_initcall(dvfs_init); module_exit(dvfs_cleanup); MODULE_AUTHOR("Freescale Semiconductor, Inc.");