diff options
-rw-r--r-- | drivers/cpuidle/cpuidle.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index 8c91badff00b..518b542cad54 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c | |||
@@ -119,10 +119,7 @@ int cpuidle_idle_call(void) | |||
119 | struct cpuidle_driver *drv; | 119 | struct cpuidle_driver *drv; |
120 | int next_state, entered_state; | 120 | int next_state, entered_state; |
121 | 121 | ||
122 | if (off) | 122 | if (off || !initialized) |
123 | return -ENODEV; | ||
124 | |||
125 | if (!initialized) | ||
126 | return -ENODEV; | 123 | return -ENODEV; |
127 | 124 | ||
128 | /* check if the device is ready */ | 125 | /* check if the device is ready */ |