diff options
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 4 |
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 | ||
654 | static inline void device_enable_async_suspend(struct device *dev) | 654 | static 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 | ||
660 | static inline void device_disable_async_suspend(struct device *dev) | 660 | static 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 | ||