diff options
Diffstat (limited to 'drivers/cpufreq/cpufreq-cpu0.c')
-rw-r--r-- | drivers/cpufreq/cpufreq-cpu0.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c index debc5a7c8db6..38ae178ce4ef 100644 --- a/drivers/cpufreq/cpufreq-cpu0.c +++ b/drivers/cpufreq/cpufreq-cpu0.c | |||
@@ -182,7 +182,11 @@ static int cpu0_cpufreq_driver_init(void) | |||
182 | struct device_node *np; | 182 | struct device_node *np; |
183 | int ret; | 183 | int ret; |
184 | 184 | ||
185 | np = of_find_node_by_path("/cpus/cpu@0"); | 185 | for_each_child_of_node(of_find_node_by_path("/cpus"), np) { |
186 | if (of_get_property(np, "operating-points", NULL)) | ||
187 | break; | ||
188 | } | ||
189 | |||
186 | if (!np) { | 190 | if (!np) { |
187 | pr_err("failed to find cpu0 node\n"); | 191 | pr_err("failed to find cpu0 node\n"); |
188 | return -ENOENT; | 192 | return -ENOENT; |