cpuidle: fail to register if !CONFIG_CPU_IDLE

Signed-off-by: Len Brown <len.brown@intel.com>

Len Brown 6b2c676b e40152ee

+3 -3
+3 -3
include/linux/cpuidle.h
··· 137 137 #else 138 138 139 139 static inline int cpuidle_register_driver(struct cpuidle_driver *drv) 140 - {return 0;} 140 + {return -ENODEV; } 141 141 static inline void cpuidle_unregister_driver(struct cpuidle_driver *drv) { } 142 142 static inline int cpuidle_register_device(struct cpuidle_device *dev) 143 - {return 0;} 143 + {return -ENODEV; } 144 144 static inline void cpuidle_unregister_device(struct cpuidle_device *dev) { } 145 145 146 146 static inline void cpuidle_pause_and_lock(void) { } 147 147 static inline void cpuidle_resume_and_unlock(void) { } 148 148 static inline int cpuidle_enable_device(struct cpuidle_device *dev) 149 - {return 0;} 149 + {return -ENODEV; } 150 150 static inline void cpuidle_disable_device(struct cpuidle_device *dev) { } 151 151 152 152 #endif