public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpufreq: arm-big-little: use clk_get instead of clk_get_sys
@ 2013-10-01  9:30 Sudeep KarkadaNagesha
  2013-10-03  4:52 ` Viresh Kumar
  2013-10-03  9:58 ` Viresh Kumar
  0 siblings, 2 replies; 8+ messages in thread
From: Sudeep KarkadaNagesha @ 2013-10-01  9:30 UTC (permalink / raw)
  To: cpufreq, linux-pm
  Cc: Sudeep.KarkadaNagesha, Sudeep KarkadaNagesha, Viresh Kumar,
	Rafael J. Wysocki

From: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>

Currently clk_get_sys is used with cpu-cluster.<n> as the device id
which is incorrect. It should be connection/consumer ID instead.

It is possible to specify input clock in the cpu device node along
with the optional clock-name. clk_get_sys can't handle that.

This patch replaces clk_get_sys with clk_get to extend support for
clocks specified in the device tree cpu node.

Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
---
 drivers/cpufreq/arm_big_little.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c
index 3549f07..501a091 100644
--- a/drivers/cpufreq/arm_big_little.c
+++ b/drivers/cpufreq/arm_big_little.c
@@ -127,7 +127,7 @@ static int get_cluster_clk_and_freq_table(struct device *cpu_dev)
 	}
 
 	name[12] = cluster + '0';
-	clk[cluster] = clk_get_sys(name, NULL);
+	clk[cluster] = clk_get(cpu_dev, name);
 	if (!IS_ERR(clk[cluster])) {
 		dev_dbg(cpu_dev, "%s: clk: %p & freq table: %p, cluster: %d\n",
 				__func__, clk[cluster], freq_table[cluster],
-- 
1.8.1.2


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

end of thread, other threads:[~2013-10-03  9:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-01  9:30 [PATCH] cpufreq: arm-big-little: use clk_get instead of clk_get_sys Sudeep KarkadaNagesha
2013-10-03  4:52 ` Viresh Kumar
2013-10-03  8:57   ` Sudeep KarkadaNagesha
2013-10-03  9:00     ` Viresh Kumar
2013-10-03  9:23       ` Sudeep KarkadaNagesha
2013-10-03  9:38         ` Viresh Kumar
2013-10-03  9:50           ` Sudeep KarkadaNagesha
2013-10-03  9:58 ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox