diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-08 16:10:57 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-08 16:10:57 -0500 |
commit | eb59c505f8a5906ad2e053d14fab50eb8574fd6f (patch) | |
tree | c6e875adc12b481b916e847e8f80b8881a0fb02c /include/linux/platform_device.h | |
parent | 1619ed8f60959829d070d8f39cd2f8ca0e7135ce (diff) | |
parent | c233523b3d392e530033a7587d7970dc62a02361 (diff) |
Merge branch 'pm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
* 'pm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (76 commits)
PM / Hibernate: Implement compat_ioctl for /dev/snapshot
PM / Freezer: fix return value of freezable_schedule_timeout_killable()
PM / shmobile: Allow the A4R domain to be turned off at run time
PM / input / touchscreen: Make st1232 use device PM QoS constraints
PM / QoS: Introduce dev_pm_qos_add_ancestor_request()
PM / shmobile: Remove the stay_on flag from SH7372's PM domains
PM / shmobile: Don't include SH7372's INTCS in syscore suspend/resume
PM / shmobile: Add support for the sh7372 A4S power domain / sleep mode
PM: Drop generic_subsys_pm_ops
PM / Sleep: Remove forward-only callbacks from AMBA bus type
PM / Sleep: Remove forward-only callbacks from platform bus type
PM: Run the driver callback directly if the subsystem one is not there
PM / Sleep: Make pm_op() and pm_noirq_op() return callback pointers
PM/Devfreq: Add Exynos4-bus device DVFS driver for Exynos4210/4212/4412.
PM / Sleep: Merge internal functions in generic_ops.c
PM / Sleep: Simplify generic system suspend callbacks
PM / Hibernate: Remove deprecated hibernation snapshot ioctls
PM / Sleep: Fix freezer failures due to racy usermodehelper_is_disabled()
ARM: S3C64XX: Implement basic power domain support
PM / shmobile: Use common always on power domain governor
...
Fix up trivial conflict in fs/xfs/xfs_buf.c due to removal of unused
XBT_FORCE_SLEEP bit
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 |