diff options
Diffstat (limited to 'drivers/cpuidle/driver.c')
-rw-r--r-- | drivers/cpuidle/driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpuidle/driver.c b/drivers/cpuidle/driver.c index 284d7af5a9c8..40cd3f3024df 100644 --- a/drivers/cpuidle/driver.c +++ b/drivers/cpuidle/driver.c | |||
@@ -47,7 +47,7 @@ static void __cpuidle_register_driver(struct cpuidle_driver *drv) | |||
47 | */ | 47 | */ |
48 | int cpuidle_register_driver(struct cpuidle_driver *drv) | 48 | int cpuidle_register_driver(struct cpuidle_driver *drv) |
49 | { | 49 | { |
50 | if (!drv) | 50 | if (!drv || !drv->state_count) |
51 | return -EINVAL; | 51 | return -EINVAL; |
52 | 52 | ||
53 | if (cpuidle_disabled()) | 53 | if (cpuidle_disabled()) |