Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298019
b: refs/heads/master
c: fc850f3
h: refs/heads/master
i:
  298017: d6aa49f
  298015: 97bf5f8
v: v3
  • Loading branch information
Daniel Lezcano authored and Len Brown committed Mar 30, 2012
1 parent e3c667a commit 11a68d5
Show file tree
Hide file tree
Showing 3 changed files with 3 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: 3a53396b0381ec9d5180fd8fe7a681c8ce95fd9a
refs/heads/master: fc850f39ea54c760ce438a601cfea8ab80c4898e
2 changes: 1 addition & 1 deletion trunk/drivers/cpuidle/cpuidle.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ int cpuidle_enable_device(struct cpuidle_device *dev)
if (!drv || !cpuidle_curr_governor)
return -EIO;
if (!dev->state_count)
return -EINVAL;
dev->state_count = drv->state_count;

if (dev->registered == 0) {
ret = __cpuidle_register_device(dev);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/cpuidle/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static void __cpuidle_register_driver(struct cpuidle_driver *drv)
*/
int cpuidle_register_driver(struct cpuidle_driver *drv)
{
if (!drv)
if (!drv || !drv->state_count)
return -EINVAL;

if (cpuidle_disabled())
Expand Down

0 comments on commit 11a68d5

Please sign in to comment.