mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Sudeep KarkadaNagesha <[email protected]>
This commit is contained in:
parent
760287ab90
commit
1037b27523
1 changed files with 3 additions and 2 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#include <linux/init.h>
|
||||
#include <linux/device.h>
|
||||
#include <linux/hardirq.h>
|
||||
#include <linux/of_device.h>
|
||||
#include <asm/prom.h>
|
||||
#include <asm/machdep.h>
|
||||
#include <asm/irq.h>
|
||||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue