From: Sudeep KarkadaNagesha Date: Wed, 17 Jul 2013 12:52:17 +0000 (+0100) Subject: cpufreq: pmac32-cpufreq: remove device tree parsing for cpu nodes X-Git-Tag: MMI-PSA29.97-13-9~13630^2~1^2~15^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1037b2752345cc5666e90b711a913ab2ae6c5920;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git cpufreq: pmac32-cpufreq: remove device tree parsing for cpu nodes Now that the cpu device registration initialises the of_node(if available) appropriately for all the cpus, parsing here is redundant. This patch removes DT parsing and uses cpu->of_node instead. Cc: Benjamin Herrenschmidt Acked-by: Viresh Kumar Signed-off-by: Sudeep KarkadaNagesha --- diff --git a/drivers/cpufreq/pmac32-cpufreq.c b/drivers/cpufreq/pmac32-cpufreq.c index 3104fad82480..56bfb6f93630 100644 --- a/drivers/cpufreq/pmac32-cpufreq.c +++ b/drivers/cpufreq/pmac32-cpufreq.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -649,8 +650,8 @@ static int __init pmac_cpufreq_setup(void) if (strstr(cmd_line, "nocpufreq")) return 0; - /* Assume only one CPU */ - cpunode = of_find_node_by_type(NULL, "cpu"); + /* Get first CPU node */ + cpunode = of_cpu_device_node_get(0); if (!cpunode) goto out;