mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
cpufreq: imx6q-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 all DT parsing and uses cpu->of_node instead. Acked-by: Shawn Guo <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Sudeep KarkadaNagesha <[email protected]>
This commit is contained in:
parent
78b4d6e0fd
commit
cdc58d602d
2 changed files with 2 additions and 5 deletions
|
|
@ -221,14 +221,12 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev)
|
|||
|
||||
cpu_dev = &pdev->dev;
|
||||
|
||||
np = of_find_node_by_path("/cpus/cpu@0");
|
||||
np = of_node_get(cpu_dev->of_node);
|
||||
if (!np) {
|
||||
dev_err(cpu_dev, "failed to find cpu0 node\n");
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
cpu_dev->of_node = np;
|
||||
|
||||
arm_clk = devm_clk_get(cpu_dev, "arm");
|
||||
pll1_sys_clk = devm_clk_get(cpu_dev, "pll1_sys");
|
||||
pll1_sw_clk = devm_clk_get(cpu_dev, "pll1_sw");
|
||||
|
|
|
|||
Loading…
Reference in a new issue