From c84310addbf5eff040aee57565f4e3810d441cbf Mon Sep 17 00:00:00 2001 From: Matt Sealey Date: Fri, 9 Sep 2011 16:49:21 -0500 Subject: [PATCH] cpufreq: allow building without cpu frequency drivers --- arch/arm/plat-mxc/dvfs_core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/plat-mxc/dvfs_core.c b/arch/arm/plat-mxc/dvfs_core.c index c515630e4d1..8365afc2744 100644 --- a/arch/arm/plat-mxc/dvfs_core.c +++ b/arch/arm/plat-mxc/dvfs_core.c @@ -88,7 +88,9 @@ int dvfs_core_resume; int curr_wp; int old_wp; +#if defined(CONFIG_CPU_FREQ) extern int cpufreq_trig_needed; +#endif struct timeval core_prev_intr; void dump_dvfs_core_regs(void); @@ -887,7 +889,9 @@ static int __devinit mxc_dvfs_core_probe(struct platform_device *pdev) old_wp = 0; curr_wp = 0; dvfs_core_resume = 0; +#if defined(CONFIG_CPU_FREQ) cpufreq_trig_needed = 0; +#endif return err; err3: