diff options
Diffstat (limited to 'include/linux/platform_device.h')
-rw-r--r-- | include/linux/platform_device.h | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h index 5622fa24e97b..60e9994ef405 100644 --- a/include/linux/platform_device.h +++ b/include/linux/platform_device.h | |||
@@ -256,62 +256,34 @@ static inline char *early_platform_driver_setup_func(void) \ | |||
256 | } | 256 | } |
257 | #endif /* MODULE */ | 257 | #endif /* MODULE */ |
258 | 258 | ||
259 | #ifdef CONFIG_PM_SLEEP | ||
260 | extern int platform_pm_prepare(struct device *dev); | ||
261 | extern void platform_pm_complete(struct device *dev); | ||
262 | #else | ||
263 | #define platform_pm_prepare NULL | ||
264 | #define platform_pm_complete NULL | ||
265 | #endif | ||
266 | |||
267 | #ifdef CONFIG_SUSPEND | 259 | #ifdef CONFIG_SUSPEND |
268 | extern int platform_pm_suspend(struct device *dev); | 260 | extern int platform_pm_suspend(struct device *dev); |
269 | extern int platform_pm_suspend_noirq(struct device *dev); | ||
270 | extern int platform_pm_resume(struct device *dev); | 261 | extern int platform_pm_resume(struct device *dev); |
271 | extern int platform_pm_resume_noirq(struct device *dev); | ||
272 | #else | 262 | #else |
273 | #define platform_pm_suspend NULL | 263 | #define platform_pm_suspend NULL |
274 | #define platform_pm_resume NULL | 264 | #define platform_pm_resume NULL |
275 | #define platform_pm_suspend_noirq NULL | ||
276 | #define platform_pm_resume_noirq NULL | ||
277 | #endif | 265 | #endif |
278 | 266 | ||
279 | #ifdef CONFIG_HIBERNATE_CALLBACKS | 267 | #ifdef CONFIG_HIBERNATE_CALLBACKS |
280 | extern int platform_pm_freeze(struct device *dev); | 268 | extern int platform_pm_freeze(struct device *dev); |
281 | extern int platform_pm_freeze_noirq(struct device *dev); | ||
282 | extern int platform_pm_thaw(struct device *dev); | 269 | extern int platform_pm_thaw(struct device *dev); |
283 | extern int platform_pm_thaw_noirq(struct device *dev); | ||
284 | extern int platform_pm_poweroff(struct device *dev); | 270 | extern int platform_pm_poweroff(struct device *dev); |
285 | extern int platform_pm_poweroff_noirq(struct device *dev); | ||
286 | extern int platform_pm_restore(struct device *dev); | 271 | extern int platform_pm_restore(struct device *dev); |
287 | extern int platform_pm_restore_noirq(struct device *dev); | ||
288 | #else | 272 | #else |
289 | #define platform_pm_freeze NULL | 273 | #define platform_pm_freeze NULL |
290 | #define platform_pm_thaw NULL | 274 | #define platform_pm_thaw NULL |
291 | #define platform_pm_poweroff NULL | 275 | #define platform_pm_poweroff NULL |
292 | #define platform_pm_restore NULL | 276 | #define platform_pm_restore NULL |
293 | #define platform_pm_freeze_noirq NULL | ||
294 | #define platform_pm_thaw_noirq NULL | ||
295 | #define platform_pm_poweroff_noirq NULL | ||
296 | #define platform_pm_restore_noirq NULL | ||
297 | #endif | 277 | #endif |
298 | 278 | ||
299 | #ifdef CONFIG_PM_SLEEP | 279 | #ifdef CONFIG_PM_SLEEP |
300 | #define USE_PLATFORM_PM_SLEEP_OPS \ | 280 | #define USE_PLATFORM_PM_SLEEP_OPS \ |
301 | .prepare = platform_pm_prepare, \ | ||
302 | .complete = platform_pm_complete, \ | ||
303 | .suspend = platform_pm_suspend, \ | 281 | .suspend = platform_pm_suspend, \ |
304 | .resume = platform_pm_resume, \ | 282 | .resume = platform_pm_resume, \ |
305 | .freeze = platform_pm_freeze, \ | 283 | .freeze = platform_pm_freeze, \ |
306 | .thaw = platform_pm_thaw, \ | 284 | .thaw = platform_pm_thaw, \ |
307 | .poweroff = platform_pm_poweroff, \ | 285 | .poweroff = platform_pm_poweroff, \ |
308 | .restore = platform_pm_restore, \ | 286 | .restore = platform_pm_restore, |
309 | .suspend_noirq = platform_pm_suspend_noirq, \ | ||
310 | .resume_noirq = platform_pm_resume_noirq, \ | ||
311 | .freeze_noirq = platform_pm_freeze_noirq, \ | ||
312 | .thaw_noirq = platform_pm_thaw_noirq, \ | ||
313 | .poweroff_noirq = platform_pm_poweroff_noirq, \ | ||
314 | .restore_noirq = platform_pm_restore_noirq, | ||
315 | #else | 287 | #else |
316 | #define USE_PLATFORM_PM_SLEEP_OPS | 288 | #define USE_PLATFORM_PM_SLEEP_OPS |
317 | #endif | 289 | #endif |