diff options
author | Jiri Kosina <jkosina@suse.cz> | 2011-07-11 08:15:48 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-07-11 08:15:55 -0400 |
commit | b7e9c223be8ce335e30f2cf6ba588e6a4092275c (patch) | |
tree | 2d1e3b75606abc18df7ad65e51ac3f90cd68b38d /include/linux/device.h | |
parent | c172d82500a6cf3c32d1e650722a1055d72ce858 (diff) | |
parent | e3bbfa78bab125f58b831b5f7f45b5a305091d72 (diff) |
Merge branch 'master' into for-next
Sync with Linus' tree to be able to apply pending patches that
are based on newer code already present upstream.
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 | ||