PM: Rename dev_pm_info.in_suspend to is_prepared
[firefly-linux-kernel-4.4.55.git] / include / linux / device.h
index c66111affca9a6e93f246b66f39ff5e4b998da58..553fd37b173b14cc41bed5d083f9f064d8d37a9f 100644 (file)
@@ -654,13 +654,13 @@ static inline int device_is_registered(struct device *dev)
 
 static inline void device_enable_async_suspend(struct device *dev)
 {
-       if (!dev->power.in_suspend)
+       if (!dev->power.is_prepared)
                dev->power.async_suspend = true;
 }
 
 static inline void device_disable_async_suspend(struct device *dev)
 {
-       if (!dev->power.in_suspend)
+       if (!dev->power.is_prepared)
                dev->power.async_suspend = false;
 }