]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/linux/device.h
PM: Do not use the syscore flag for runtime PM
[mirror_ubuntu-bionic-kernel.git] / include / linux / device.h
index 52a5f15a2223ecb916391138ca9cb44f5d5d108a..86529e642d6c047ac2399ba0c21c69e229adf755 100644 (file)
@@ -772,6 +772,13 @@ static inline void pm_suspend_ignore_children(struct device *dev, bool enable)
        dev->power.ignore_children = enable;
 }
 
+static inline void dev_pm_syscore_device(struct device *dev, bool val)
+{
+#ifdef CONFIG_PM_SLEEP
+       dev->power.syscore = val;
+#endif
+}
+
 static inline void device_lock(struct device *dev)
 {
        mutex_lock(&dev->mutex);