linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] cpufreq: cpu0: Release clk and regulator in remove function
@ 2014-08-28  7:00 Pramod Gurav
  2014-08-28  5:30 ` Shawn Guo
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Pramod Gurav @ 2014-08-28  7:00 UTC (permalink / raw)
  To: linux-kernel, linux-arm-msm, linux-pm
  Cc: Pramod Gurav, Shawn Guo, Rafael J. Wysocki, Viresh Kumar

This function releases clk and regulator in remove function for clean
unloading.

CC: Shawn Guo <shawn.guo@linaro.org>
CC: "Rafael J. Wysocki" <rjw@rjwysocki.net>
CC: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
---
 drivers/cpufreq/cpufreq-cpu0.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c
index 0d2172b..e1574f8 100644
--- a/drivers/cpufreq/cpufreq-cpu0.c
+++ b/drivers/cpufreq/cpufreq-cpu0.c
@@ -229,6 +229,8 @@ static int cpu0_cpufreq_remove(struct platform_device *pdev)
 	cpufreq_cooling_unregister(cdev);
 	cpufreq_unregister_driver(&cpu0_cpufreq_driver);
 	dev_pm_opp_free_cpufreq_table(cpu_dev, &freq_table);
+	clk_put(cpu_clk);
+	regulator_put(cpu_reg);
 
 	return 0;
 }
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-08-28  7:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-28  7:00 [PATCH 1/3] cpufreq: cpu0: Release clk and regulator in remove function Pramod Gurav
2014-08-28  5:30 ` Shawn Guo
2014-08-28  5:53 ` Viresh Kumar
2014-08-28  7:00 ` [PATCH 2/3] cpufreq: cpu0: Removes unnecessary IS_ERR check on clk Pramod Gurav
2014-08-28  5:31   ` Shawn Guo
2014-08-28  7:00 ` [PATCH 3/3] cpufreq: cpu0: Convert pr_ to dev_ as struct device is available Pramod Gurav
2014-08-28  6:15   ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).