Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362206
b: refs/heads/master
c: f5c3ef2
h: refs/heads/master
v: v3
  • Loading branch information
Paolo Pisati authored and Rafael J. Wysocki committed Apr 1, 2013
1 parent c281089 commit e370b9f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5faaa035ddc16d3d2e31c0bfc1c4756b6869dbcc
refs/heads/master: f5c3ef21db149ba573a3f079df287f3d8b05ee13
10 changes: 8 additions & 2 deletions trunk/drivers/cpufreq/cpufreq-cpu0.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,16 @@ static struct cpufreq_driver cpu0_cpufreq_driver = {

static int cpu0_cpufreq_probe(struct platform_device *pdev)
{
struct device_node *np;
struct device_node *np, *parent;
int ret;

for_each_child_of_node(of_find_node_by_path("/cpus"), np) {
parent = of_find_node_by_path("/cpus");
if (!parent) {
pr_err("failed to find OF /cpus\n");
return -ENOENT;
}

for_each_child_of_node(parent, np) {
if (of_get_property(np, "operating-points", NULL))
break;
}
Expand Down

0 comments on commit e370b9f

Please sign in to comment.