]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: ccree: failing the suspend is not an error
authorGilad Ben-Yossef <gilad@benyossef.com>
Sun, 7 Jan 2018 12:14:23 +0000 (12:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:27:23 +0000 (16:27 +0100)
PM suspend returning a none zero value is not an error. It simply
indicates a suspend is not advised right now so don't treat it as
an error.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_request_mgr.c

index 1d13756d12708448a2362a7cf34d9fe8932368ca..ff751d300ff3140c607e472b93ea2b057fcc8bca 100644 (file)
@@ -598,9 +598,6 @@ static void proc_completions(struct cc_drvdata *drvdata)
                                                drvdata->request_mgr_handle;
        unsigned int *tail = &request_mgr_handle->req_queue_tail;
        unsigned int *head = &request_mgr_handle->req_queue_head;
-#if defined(CONFIG_PM)
-       int rc = 0;
-#endif
 
        while (request_mgr_handle->axi_completed) {
                request_mgr_handle->axi_completed--;
@@ -625,10 +622,7 @@ static void proc_completions(struct cc_drvdata *drvdata)
                dev_dbg(dev, "Request completed. axi_completed=%d\n",
                        request_mgr_handle->axi_completed);
 #if defined(CONFIG_PM)
-               rc = cc_pm_put_suspend(dev);
-               if (rc)
-                       dev_err(dev, "Failed to set runtime suspension %d\n",
-                               rc);
+               cc_pm_put_suspend(dev);
 #endif
        }
 }