Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sudeep KarkadaNagesha and committed by
Rafael J. Wysocki
076dec90 5d7e690d

+1 -1
+1 -1
drivers/cpufreq/arm_big_little.c
··· 119 119 } 120 120 121 121 name[12] = cluster + '0'; 122 - clk[cluster] = clk_get_sys(name, NULL); 122 + clk[cluster] = clk_get(cpu_dev, name); 123 123 if (!IS_ERR(clk[cluster])) { 124 124 dev_dbg(cpu_dev, "%s: clk: %p & freq table: %p, cluster: %d\n", 125 125 __func__, clk[cluster], freq_table[cluster],