diff options
author | Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com> | 2013-10-16 09:52:39 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-10-16 17:19:17 -0400 |
commit | 076dec90fc32c830184b0f0fa1842a6de1199bc6 (patch) | |
tree | 1b8a8a0477b70c7ca8c0d9c20b4ab0c3d7c6252a | |
parent | 5d7e690d775e59e51caaf03e90811af7729ef278 (diff) |
cpufreq: arm-big-little: use clk_get instead of clk_get_sys
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.
Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/cpufreq/arm_big_little.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c index f7717efdd28f..31b41a4c0dfe 100644 --- a/drivers/cpufreq/arm_big_little.c +++ b/drivers/cpufreq/arm_big_little.c | |||
@@ -119,7 +119,7 @@ static int get_cluster_clk_and_freq_table(struct device *cpu_dev) | |||
119 | } | 119 | } |
120 | 120 | ||
121 | name[12] = cluster + '0'; | 121 | name[12] = cluster + '0'; |
122 | clk[cluster] = clk_get_sys(name, NULL); | 122 | clk[cluster] = clk_get(cpu_dev, name); |
123 | if (!IS_ERR(clk[cluster])) { | 123 | if (!IS_ERR(clk[cluster])) { |
124 | dev_dbg(cpu_dev, "%s: clk: %p & freq table: %p, cluster: %d\n", | 124 | dev_dbg(cpu_dev, "%s: clk: %p & freq table: %p, cluster: %d\n", |
125 | __func__, clk[cluster], freq_table[cluster], | 125 | __func__, clk[cluster], freq_table[cluster], |