aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 5056cf8d935..e4f62d8896b 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -653,13 +653,13 @@ static inline int device_is_registered(struct device *dev)
653 653
654static inline void device_enable_async_suspend(struct device *dev) 654static inline void device_enable_async_suspend(struct device *dev)
655{ 655{
656 if (!dev->power.in_suspend) 656 if (!dev->power.is_prepared)
657 dev->power.async_suspend = true; 657 dev->power.async_suspend = true;
658} 658}
659 659
660static inline void device_disable_async_suspend(struct device *dev) 660static inline void device_disable_async_suspend(struct device *dev)
661{ 661{
662 if (!dev->power.in_suspend) 662 if (!dev->power.is_prepared)
663 dev->power.async_suspend = false; 663 dev->power.async_suspend = false;
664} 664}
665 665