summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-mx27/dpm.c2
-rw-r--r--arch/arm/mach-mx3/dpm.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-mx27/dpm.c b/arch/arm/mach-mx27/dpm.c
index 9aacfcbdd347..1662923413b5 100644
--- a/arch/arm/mach-mx27/dpm.c
+++ b/arch/arm/mach-mx27/dpm.c
@@ -120,7 +120,9 @@ static int mxc_dpm_set_opt(struct dpm_opt *cur, struct dpm_opt *new)
md_new->cpu / 1000);
}
#ifdef CONFIG_PM
+#ifdef CONFIG_MXC_DVFS
mxc_pm_dvfs(md_new->cpu, md_new->ahb, md_new->ip);
+#endif
curr_mode = md_new->mode;
#endif
diff --git a/arch/arm/mach-mx3/dpm.c b/arch/arm/mach-mx3/dpm.c
index caeed74925fa..e05a6816c669 100644
--- a/arch/arm/mach-mx3/dpm.c
+++ b/arch/arm/mach-mx3/dpm.c
@@ -120,7 +120,9 @@ static int mxc_dpm_set_opt(struct dpm_opt *cur, struct dpm_opt *new)
md_new->cpu / 1000);
}
#ifdef CONFIG_PM
+#ifdef CONFIG_MXC_DVFS
mxc_pm_dvfs(md_new->cpu, md_new->ahb, md_new->ip);
+#endif
curr_mode = md_new->mode;
#endif