Message ID | 1307412330-25798-2-git-send-email-nm@ti.com (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Kevin Hilman |
Headers | show |
Nishanth Menon <nm@ti.com> writes: > Probably should be squashed to: > "OMAP2+: cpufreq: fix freq_table leak" > > Looks like I've been lazy and added up a useless else case! > > Signed-off-by: Nishanth Menon <nm@ti.com> Thanks, squashed. Kevin -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/mach-omap2/omap2plus-cpufreq.c b/arch/arm/mach-omap2/omap2plus-cpufreq.c index 1406577..a962a31 100644 --- a/arch/arm/mach-omap2/omap2plus-cpufreq.c +++ b/arch/arm/mach-omap2/omap2plus-cpufreq.c @@ -186,11 +186,11 @@ static int __cpuinit omap_cpu_init(struct cpufreq_policy *policy) } result = cpufreq_frequency_table_cpuinfo(policy, freq_table); - if (!result) - cpufreq_frequency_table_get_attr(freq_table, policy->cpu); - else + if (result) goto fail_table; + cpufreq_frequency_table_get_attr(freq_table, policy->cpu); + policy->min = policy->cpuinfo.min_freq; policy->max = policy->cpuinfo.max_freq; policy->cur = omap_getspeed(policy->cpu);
Probably should be squashed to: "OMAP2+: cpufreq: fix freq_table leak" Looks like I've been lazy and added up a useless else case! Signed-off-by: Nishanth Menon <nm@ti.com> --- arch/arm/mach-omap2/omap2plus-cpufreq.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)