diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2018-01-07 12:14:23 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-08 16:27:23 +0100 |
commit | 5ced2664699beb76ed54e2b88ccf2e1580e4e520 (patch) | |
tree | 4cb32a124edbc8cea28e26f0b0ea0952071614e2 /drivers/staging/ccree | |
parent | 293edc27f8bc8a44978e9e95902b07b74f1c7523 (diff) | |
download | blackbird-obmc-linux-5ced2664699beb76ed54e2b88ccf2e1580e4e520.tar.gz blackbird-obmc-linux-5ced2664699beb76ed54e2b88ccf2e1580e4e520.zip |
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: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ccree')
-rw-r--r-- | drivers/staging/ccree/ssi_request_mgr.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/staging/ccree/ssi_request_mgr.c b/drivers/staging/ccree/ssi_request_mgr.c index 1d13756d1270..ff751d300ff3 100644 --- a/drivers/staging/ccree/ssi_request_mgr.c +++ b/drivers/staging/ccree/ssi_request_mgr.c @@ -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 } } |