Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318808
b: refs/heads/master
c: 3af272a
h: refs/heads/master
v: v3
  • Loading branch information
Colin Cross authored and Len Brown committed Jun 2, 2012
1 parent cdaaa4b commit f4bb55f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 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: 56cfbf74a17c40f3a741398103c9f5d5a6806715
refs/heads/master: 3af272ab75c7a0c7fa5ae5507724d961f7e7718b
13 changes: 9 additions & 4 deletions trunk/drivers/cpuidle/cpuidle.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,13 +403,18 @@ static int __cpuidle_register_device(struct cpuidle_device *dev)

per_cpu(cpuidle_devices, dev->cpu) = dev;
list_add(&dev->device_list, &cpuidle_detected_devices);
if ((ret = cpuidle_add_sysfs(cpu_dev))) {
module_put(cpuidle_driver->owner);
return ret;
}
ret = cpuidle_add_sysfs(cpu_dev);
if (ret)
goto err_sysfs;

dev->registered = 1;
return 0;

err_sysfs:
list_del(&dev->device_list);
per_cpu(cpuidle_devices, dev->cpu) = NULL;
module_put(cpuidle_driver->owner);
return ret;
}

/**
Expand Down

0 comments on commit f4bb55f

Please sign in to comment.