]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/base/power/common.c
PM: Do not use the syscore flag for runtime PM
[mirror_ubuntu-bionic-kernel.git] / drivers / base / power / common.c
index cf7a85134730d579074808d0c42174ab04a1e9c7..39c32529b83374c36eda18188c393930732ad99f 100644 (file)
@@ -83,18 +83,3 @@ int dev_pm_put_subsys_data(struct device *dev)
        return ret;
 }
 EXPORT_SYMBOL_GPL(dev_pm_put_subsys_data);
-
-/**
- * dev_pm_syscore_device - Set/unset the given device's power.syscore flag.
- * @dev: Device whose flag is to be modified.
- * @val: New value of the flag.
- */
-void dev_pm_syscore_device(struct device *dev, bool val)
-{
-       unsigned long flags;
-
-       spin_lock_irqsave(&dev->power.lock, flags);
-       dev->power.syscore = val;
-       spin_unlock_irqrestore(&dev->power.lock, flags);
-}
-EXPORT_SYMBOL_GPL(dev_pm_syscore_device);