diff options
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index af92883bb4a6..86ef6ab553b1 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -776,6 +776,13 @@ static inline void pm_suspend_ignore_children(struct device *dev, bool enable) | |||
776 | dev->power.ignore_children = enable; | 776 | dev->power.ignore_children = enable; |
777 | } | 777 | } |
778 | 778 | ||
779 | static inline void dev_pm_syscore_device(struct device *dev, bool val) | ||
780 | { | ||
781 | #ifdef CONFIG_PM_SLEEP | ||
782 | dev->power.syscore = val; | ||
783 | #endif | ||
784 | } | ||
785 | |||
779 | static inline void device_lock(struct device *dev) | 786 | static inline void device_lock(struct device *dev) |
780 | { | 787 | { |
781 | mutex_lock(&dev->mutex); | 788 | mutex_lock(&dev->mutex); |