diff options
-rw-r--r-- | drivers/cpuidle/driver.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/cpuidle/driver.c b/drivers/cpuidle/driver.c index 3af841fb397..c2b281afe0e 100644 --- a/drivers/cpuidle/driver.c +++ b/drivers/cpuidle/driver.c | |||
@@ -235,16 +235,10 @@ EXPORT_SYMBOL_GPL(cpuidle_get_driver); | |||
235 | */ | 235 | */ |
236 | struct cpuidle_driver *cpuidle_get_cpu_driver(struct cpuidle_device *dev) | 236 | struct cpuidle_driver *cpuidle_get_cpu_driver(struct cpuidle_device *dev) |
237 | { | 237 | { |
238 | struct cpuidle_driver *drv; | ||
239 | |||
240 | if (!dev) | 238 | if (!dev) |
241 | return NULL; | 239 | return NULL; |
242 | 240 | ||
243 | spin_lock(&cpuidle_driver_lock); | 241 | return __cpuidle_get_cpu_driver(dev->cpu); |
244 | drv = __cpuidle_get_cpu_driver(dev->cpu); | ||
245 | spin_unlock(&cpuidle_driver_lock); | ||
246 | |||
247 | return drv; | ||
248 | } | 242 | } |
249 | EXPORT_SYMBOL_GPL(cpuidle_get_cpu_driver); | 243 | EXPORT_SYMBOL_GPL(cpuidle_get_cpu_driver); |
250 | 244 | ||