diff options
author | Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com> | 2013-07-17 08:52:17 -0400 |
---|---|---|
committer | Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com> | 2013-08-21 05:29:56 -0400 |
commit | 1037b2752345cc5666e90b711a913ab2ae6c5920 (patch) | |
tree | 1cb327c88818a84c6fb8c3c4c9f4424f2d427199 /drivers/cpufreq | |
parent | 760287ab90a3ca93a2f87f7e7137e06e89a26b01 (diff) |
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 <benh@kernel.crashing.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/pmac32-cpufreq.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 @@ | |||
25 | #include <linux/init.h> | 25 | #include <linux/init.h> |
26 | #include <linux/device.h> | 26 | #include <linux/device.h> |
27 | #include <linux/hardirq.h> | 27 | #include <linux/hardirq.h> |
28 | #include <linux/of_device.h> | ||
28 | #include <asm/prom.h> | 29 | #include <asm/prom.h> |
29 | #include <asm/machdep.h> | 30 | #include <asm/machdep.h> |
30 | #include <asm/irq.h> | 31 | #include <asm/irq.h> |
@@ -649,8 +650,8 @@ static int __init pmac_cpufreq_setup(void) | |||
649 | if (strstr(cmd_line, "nocpufreq")) | 650 | if (strstr(cmd_line, "nocpufreq")) |
650 | return 0; | 651 | return 0; |
651 | 652 | ||
652 | /* Assume only one CPU */ | 653 | /* Get first CPU node */ |
653 | cpunode = of_find_node_by_type(NULL, "cpu"); | 654 | cpunode = of_cpu_device_node_get(0); |
654 | if (!cpunode) | 655 | if (!cpunode) |
655 | goto out; | 656 | goto out; |
656 | 657 | ||