Thread (4 messages) flat view 4 messages, 3 authors, 2015-11-25

Re: [PATCH] cpufreq: qoriq: Register cooling device based on device tree

From: Viresh Kumar <viresh.kumar@linaro.org>
Date: 2015-11-24 07:11:21
Also in: linux-devicetree, linux-pm

On 24-11-15, 14:55, Jia Hongtao wrote:
+	/* Register CPU cooling device for QorIQ platform */
+	for_each_node_with_property(cpu_np, "#cooling-cells") {
+		of_property_read_u32(cpu_np, "reg", &cpu_id);
+		cpufreq_get_policy(&cpu_policy, cpu_id);
That's not the right way to do it. You already have DT node for the
CPU, look at how it is done from ->ready() callback for cpufreq-dt.

-- 
viresh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help