Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156219
b: refs/heads/master
c: d5194de
h: refs/heads/master
i:
  156217: 6dbcb87
  156215: b38302c
v: v3
  • Loading branch information
Thomas Renninger authored and Dave Jones committed Aug 4, 2009
1 parent d93f76c commit 7205e66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 42c74b84c64633dd3badbfc2abd2ef1728b64b30
refs/heads/master: d5194decd0a6f792b2789eebd4ddf022a248f655
4 changes: 3 additions & 1 deletion trunk/drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,8 @@ static int cpufreq_add_dev(struct sys_device *sys_dev)

/* Check for existing affected CPUs.
* They may not be aware of it due to CPU Hotplug.
* cpufreq_cpu_put is called when the device is removed
* in __cpufreq_remove_dev()
*/
managed_policy = cpufreq_cpu_get(j);
if (unlikely(managed_policy)) {
Expand All @@ -884,7 +886,7 @@ static int cpufreq_add_dev(struct sys_device *sys_dev)
ret = sysfs_create_link(&sys_dev->kobj,
&managed_policy->kobj,
"cpufreq");
if (!ret)
if (ret)
cpufreq_cpu_put(managed_policy);
/*
* Success. We only needed to be added to the mask.
Expand Down

0 comments on commit 7205e66

Please sign in to comment.