Merge branch 'pm-core'
[muen/linux.git] / drivers / base / power / runtime.c
index 1cea431c0adf353e253b6d50cc99e8de7e8f6f6a..e57b5d2f81cfa63838bf27ed9474dd559ccb54dd 100644 (file)
@@ -253,7 +253,7 @@ static int rpm_check_suspend_allowed(struct device *dev)
            || (dev->power.request_pending
                        && dev->power.request == RPM_REQ_RESUME))
                retval = -EAGAIN;
-       else if (__dev_pm_qos_read_value(dev) < 0)
+       else if (__dev_pm_qos_read_value(dev) == 0)
                retval = -EPERM;
        else if (dev->power.runtime_status == RPM_SUSPENDED)
                retval = 1;