From: Len Brown Date: Tue, 11 May 2010 20:50:52 +0000 (-0400) Subject: cpuidle: fail to register if !CONFIG_CPU_IDLE X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6b2c676bf32be91f43215d5874c07c1becaba013;p=mv-sheeva.git cpuidle: fail to register if !CONFIG_CPU_IDLE Signed-off-by: Len Brown --- diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index dcf77fa826b..f5e6480dc16 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h @@ -137,16 +137,16 @@ extern void cpuidle_disable_device(struct cpuidle_device *dev); #else static inline int cpuidle_register_driver(struct cpuidle_driver *drv) -{return 0;} +{return -ENODEV; } static inline void cpuidle_unregister_driver(struct cpuidle_driver *drv) { } static inline int cpuidle_register_device(struct cpuidle_device *dev) -{return 0;} +{return -ENODEV; } static inline void cpuidle_unregister_device(struct cpuidle_device *dev) { } static inline void cpuidle_pause_and_lock(void) { } static inline void cpuidle_resume_and_unlock(void) { } static inline int cpuidle_enable_device(struct cpuidle_device *dev) -{return 0;} +{return -ENODEV; } static inline void cpuidle_disable_device(struct cpuidle_device *dev) { } #endif