Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 59212
b: refs/heads/master
c: 58a7295
h: refs/heads/master
v: v3
  • Loading branch information
Tobias Klauser authored and Dave Jones committed Jun 21, 2007
1 parent 6b291ea commit e8eaa0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: ea48761519bd40d7a881c587b5f3177664b2987e
refs/heads/master: 58a7295bc8073b9e668c329cb9ceb5b668c2b15d
9 changes: 6 additions & 3 deletions trunk/drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -826,16 +826,19 @@ static int cpufreq_add_dev (struct sys_device * sys_dev)
/* set up files for this cpu device */
drv_attr = cpufreq_driver->attr;
while ((drv_attr) && (*drv_attr)) {
if (sysfs_create_file(&policy->kobj, &((*drv_attr)->attr)))
ret = sysfs_create_file(&policy->kobj, &((*drv_attr)->attr));
if (ret)
goto err_out_driver_exit;
drv_attr++;
}
if (cpufreq_driver->get){
if (sysfs_create_file(&policy->kobj, &cpuinfo_cur_freq.attr))
ret = sysfs_create_file(&policy->kobj, &cpuinfo_cur_freq.attr);
if (ret)
goto err_out_driver_exit;
}
if (cpufreq_driver->target){
if (sysfs_create_file(&policy->kobj, &scaling_cur_freq.attr))
ret = sysfs_create_file(&policy->kobj, &scaling_cur_freq.attr);
if (ret)
goto err_out_driver_exit;
}

Expand Down

0 comments on commit e8eaa0d

Please sign in to comment.