cpufreq / highbank: add support for highbank cpufreq
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / cpufreq / cpufreq-cpu0.c
index debc5a7c8db6207feeb9c428ccc44b8fcaed8d2f..38ae178ce4ef6176c42aaf7c0930645f8fbbf25a 100644 (file)
@@ -182,7 +182,11 @@ static int cpu0_cpufreq_driver_init(void)
        struct device_node *np;
        int ret;
 
-       np = of_find_node_by_path("/cpus/cpu@0");
+       for_each_child_of_node(of_find_node_by_path("/cpus"), np) {
+               if (of_get_property(np, "operating-points", NULL))
+                       break;
+       }
+
        if (!np) {
                pr_err("failed to find cpu0 node\n");
                return -ENOENT;