projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c14b9a9
)
remoteproc: qcom: hexagon: Fix error return code in q6v5_probe()
author
Wei Yongjun
<weiyj.lk@gmail.com>
Fri, 29 Jul 2016 15:56:52 +0000
(15:56 +0000)
committer
Bjorn Andersson
<bjorn.andersson@linaro.org>
Wed, 10 Aug 2016 17:51:35 +0000
(10:51 -0700)
Fix to return a negative error code from the state get failed error
handling case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_q6v5_pil.c
patch
|
blob
|
history
diff --git
a/drivers/remoteproc/qcom_q6v5_pil.c
b/drivers/remoteproc/qcom_q6v5_pil.c
index
2a1b2c7
..
05b0457
100644
(file)
--- a/
drivers/remoteproc/qcom_q6v5_pil.c
+++ b/
drivers/remoteproc/qcom_q6v5_pil.c
@@
-863,8
+863,10
@@
static int q6v5_probe(struct platform_device *pdev)
goto free_rproc;
qproc->state = qcom_smem_state_get(&pdev->dev, "stop", &qproc->stop_bit);
- if (IS_ERR(qproc->state))
+ if (IS_ERR(qproc->state)) {
+ ret = PTR_ERR(qproc->state);
goto free_rproc;
+ }
ret = rproc_add(rproc);
if (ret)