]> Pileus Git - ~andy/linux/blobdiff - include/linux/device.h
Merge branch 'for-3.0-important' of git://git.drbd.org/linux-2.6-drbd into for-linus
[~andy/linux] / 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;
 }