[PATCH 7/8] PM: OMAP3: Removed a couple of unused variables from DVFS code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



- freqs_notify is only used by CPU_FREQ => added compiler flags
- req_l3_freq was a copy paste bug and was never used by this function => rm

Signed-off-by: Tero Kristo <tero.kristo@xxxxxxxxx>
---
 arch/arm/mach-omap2/resource34xx.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/resource34xx.c b/arch/arm/mach-omap2/resource34xx.c
index f862ee6..aec2bcb 100644
--- a/arch/arm/mach-omap2/resource34xx.c
+++ b/arch/arm/mach-omap2/resource34xx.c
@@ -183,8 +183,10 @@ int resource_access_opp_lock(int res, int delta)
 
 int resource_set_opp_level(int res, u32 target_level, int flags)
 {
-	unsigned long mpu_freq, mpu_old_freq, l3_freq, req_l3_freq, t_opp;
+	unsigned long mpu_freq, mpu_old_freq, l3_freq, t_opp;
+#ifdef CONFIG_CPU_FREQ
 	struct cpufreq_freqs freqs_notify;
+#endif
 	struct shared_resource *resp;
 
 	if (res == VDD1_OPP)
-- 
1.5.4.3

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux