diff options
Diffstat (limited to 'drivers/cpuidle/cpuidle.c')
-rw-r--r-- | drivers/cpuidle/cpuidle.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index 080bd2dbde4b..7a73a279e179 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c | |||
@@ -330,9 +330,6 @@ int cpuidle_enable_device(struct cpuidle_device *dev) | |||
330 | if (!dev->registered) | 330 | if (!dev->registered) |
331 | return -EINVAL; | 331 | return -EINVAL; |
332 | 332 | ||
333 | if (!dev->state_count) | ||
334 | dev->state_count = drv->state_count; | ||
335 | |||
336 | ret = cpuidle_add_device_sysfs(dev); | 333 | ret = cpuidle_add_device_sysfs(dev); |
337 | if (ret) | 334 | if (ret) |
338 | return ret; | 335 | return ret; |