X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fdevice.h;h=45bc8c1669d2233ab84706d179875ad864a45695;hb=c8940eca75e6d1ea57f6c491a30bd1023c64c9ad;hp=dd489531346864be7031cd9d7937e29b44db3e00;hpb=b18cae4224bde7e5a332c19bc99247b2098ea232;p=pandora-kernel.git diff --git a/include/linux/device.h b/include/linux/device.h index dd4895313468..45bc8c1669d2 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -508,13 +508,13 @@ static inline int device_is_registered(struct device *dev) static inline void device_enable_async_suspend(struct device *dev) { - if (dev->power.status == DPM_ON) + if (!dev->power.in_suspend) dev->power.async_suspend = true; } static inline void device_disable_async_suspend(struct device *dev) { - if (dev->power.status == DPM_ON) + if (!dev->power.in_suspend) dev->power.async_suspend = false; }