aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/exynos5440-cpufreq.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-09-16 09:26:44 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-09-30 14:18:45 -0400
commit724b9ea0e2ebdef35c05fb19ab3690edf52d8708 (patch)
tree47e2d5f6a93b3f443d76ee0fad6953fc45491812 /drivers/cpufreq/exynos5440-cpufreq.c
parent52bcd9986ae6adc69b5e986c09da6fede8ed8119 (diff)
cpufreq: exynos: call cpufreq_frequency_table_put_attr()
Drivers which have an exit path must call cpufreq_frequency_table_put_attr() if they have called cpufreq_frequency_table_get_attr() in their init path. This driver was missing this part and is fixed with this patch. Acked-by: Amit Daniel Kachhap <amit.daniel@samsung.com> Acked-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/exynos5440-cpufreq.c')
-rw-r--r--drivers/cpufreq/exynos5440-cpufreq.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/cpufreq/exynos5440-cpufreq.c b/drivers/cpufreq/exynos5440-cpufreq.c
index b62967148c80..24df155f871e 100644
--- a/drivers/cpufreq/exynos5440-cpufreq.c
+++ b/drivers/cpufreq/exynos5440-cpufreq.c
@@ -339,12 +339,19 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy)
339 return 0; 339 return 0;
340} 340}
341 341
342static int exynos_cpufreq_cpu_exit(struct cpufreq_policy *policy)
343{
344 cpufreq_frequency_table_put_attr(policy->cpu);
345 return 0;
346}
347
342static struct cpufreq_driver exynos_driver = { 348static struct cpufreq_driver exynos_driver = {
343 .flags = CPUFREQ_STICKY, 349 .flags = CPUFREQ_STICKY,
344 .verify = exynos_verify_speed, 350 .verify = exynos_verify_speed,
345 .target = exynos_target, 351 .target = exynos_target,
346 .get = exynos_getspeed, 352 .get = exynos_getspeed,
347 .init = exynos_cpufreq_cpu_init, 353 .init = exynos_cpufreq_cpu_init,
354 .exit = exynos_cpufreq_cpu_exit,
348 .name = CPUFREQ_NAME, 355 .name = CPUFREQ_NAME,
349}; 356};
350 357