Commit 5ced2664 authored by Gilad Ben-Yossef's avatar Gilad Ben-Yossef Committed by Greg Kroah-Hartman

staging: ccree: failing the suspend is not an error

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: default avatarGilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 293edc27
...@@ -598,9 +598,6 @@ static void proc_completions(struct cc_drvdata *drvdata) ...@@ -598,9 +598,6 @@ static void proc_completions(struct cc_drvdata *drvdata)
drvdata->request_mgr_handle; drvdata->request_mgr_handle;
unsigned int *tail = &request_mgr_handle->req_queue_tail; unsigned int *tail = &request_mgr_handle->req_queue_tail;
unsigned int *head = &request_mgr_handle->req_queue_head; unsigned int *head = &request_mgr_handle->req_queue_head;
#if defined(CONFIG_PM)
int rc = 0;
#endif
while (request_mgr_handle->axi_completed) { while (request_mgr_handle->axi_completed) {
request_mgr_handle->axi_completed--; request_mgr_handle->axi_completed--;
...@@ -625,10 +622,7 @@ static void proc_completions(struct cc_drvdata *drvdata) ...@@ -625,10 +622,7 @@ static void proc_completions(struct cc_drvdata *drvdata)
dev_dbg(dev, "Request completed. axi_completed=%d\n", dev_dbg(dev, "Request completed. axi_completed=%d\n",
request_mgr_handle->axi_completed); request_mgr_handle->axi_completed);
#if defined(CONFIG_PM) #if defined(CONFIG_PM)
rc = cc_pm_put_suspend(dev); cc_pm_put_suspend(dev);
if (rc)
dev_err(dev, "Failed to set runtime suspension %d\n",
rc);
#endif #endif
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment