diff options
author | Mike Turquette <mturquette@linaro.org> | 2014-09-26 19:09:39 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-09-26 19:09:39 -0400 |
commit | b6b2fe5b6e956c8217a7584472a3ac5c068b61d4 (patch) | |
tree | 899d38684e674a05fc3e4ae2885529b916583323 /drivers/cpufreq | |
parent | b52f4914f3be3ff50e7308e3ce03a2ce71195ecc (diff) | |
parent | b9e742c3164344fece3615aca42ec51b41753908 (diff) |
Merge tag 'tegra-clk-3.18' of git://nv-tegra.nvidia.com/user/pdeschrijver/linux into clk-next
Tegra clk updates for 3.18
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/cpufreq_opp.c | 2 | ||||
-rw-r--r-- | drivers/cpufreq/intel_pstate.c | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/drivers/cpufreq/cpufreq_opp.c b/drivers/cpufreq/cpufreq_opp.c index f7a32d2326c6..773bcde893c0 100644 --- a/drivers/cpufreq/cpufreq_opp.c +++ b/drivers/cpufreq/cpufreq_opp.c | |||
@@ -60,7 +60,7 @@ int dev_pm_opp_init_cpufreq_table(struct device *dev, | |||
60 | goto out; | 60 | goto out; |
61 | } | 61 | } |
62 | 62 | ||
63 | freq_table = kcalloc(sizeof(*freq_table), (max_opps + 1), GFP_ATOMIC); | 63 | freq_table = kcalloc((max_opps + 1), sizeof(*freq_table), GFP_ATOMIC); |
64 | if (!freq_table) { | 64 | if (!freq_table) { |
65 | ret = -ENOMEM; | 65 | ret = -ENOMEM; |
66 | goto out; | 66 | goto out; |
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index e396ad3f8f3f..0668b389c516 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c | |||
@@ -708,10 +708,6 @@ static unsigned int intel_pstate_get(unsigned int cpu_num) | |||
708 | 708 | ||
709 | static int intel_pstate_set_policy(struct cpufreq_policy *policy) | 709 | static int intel_pstate_set_policy(struct cpufreq_policy *policy) |
710 | { | 710 | { |
711 | struct cpudata *cpu; | ||
712 | |||
713 | cpu = all_cpu_data[policy->cpu]; | ||
714 | |||
715 | if (!policy->cpuinfo.max_freq) | 711 | if (!policy->cpuinfo.max_freq) |
716 | return -ENODEV; | 712 | return -ENODEV; |
717 | 713 | ||