Merge branch 'pm-qos'
[linux-3.10.git] / drivers / base / power / qos.c
index f03f1ba..ff46387 100644 (file)
@@ -551,7 +551,7 @@ int dev_pm_qos_add_ancestor_request(struct device *dev,
                error = dev_pm_qos_add_request(ancestor, req,
                                               DEV_PM_QOS_LATENCY, value);
 
-       if (error)
+       if (error < 0)
                req->dev = NULL;
 
        return error;