path: root/drivers/remoteproc
diff options
authorWei Yongjun <>2021-03-26 02:47:41 +0000
committerBjorn Andersson <>2021-04-13 21:10:32 -0500
commitca0e89406ba18e9ba98d28413b50469f631bb583 (patch)
treec344529687d835241080183ba95fdc48dea168dc /drivers/remoteproc
parent3fdba9d27cc68a4d561da80bfecd4f73239b9a86 (diff)
remoteproc: qcom: wcss: Fix wrong pointer passed to PTR_ERR()
PTR_ERR should access the value just tested by IS_ERR, otherwise the wrong error code will be returned. This commit fix it by return 'ret' directly. Reviewed-by: Dan Carpenter <> Fixes: 0af65b9b915e ("remoteproc: qcom: wcss: Add non pas wcss Q6 support for QCS404") Reported-by: Hulk Robot <> Signed-off-by: Wei Yongjun <> Link: Signed-off-by: Bjorn Andersson <>
Diffstat (limited to 'drivers/remoteproc')
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/remoteproc/qcom_q6v5_wcss.c b/drivers/remoteproc/qcom_q6v5_wcss.c
index 6f7d940d4431..eab911dabb0b 100644
--- a/drivers/remoteproc/qcom_q6v5_wcss.c
+++ b/drivers/remoteproc/qcom_q6v5_wcss.c
@@ -972,7 +972,7 @@ static int q6v5_wcss_init_clock(struct q6v5_wcss *wcss)
ret = PTR_ERR(wcss->qdsp6ss_axim_cbcr);
if (ret != -EPROBE_DEFER)
dev_err(wcss->dev, "failed to get axim cbcr clk\n");
- return PTR_ERR(wcss->qdsp6ss_abhm_cbcr);
+ return ret;
wcss->lcc_bcr_sleep = devm_clk_get(wcss->dev, "lcc_bcr_sleep");