mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-11 10:42:04 +08:00
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
![]() |
From 6a52dbbde0e741e84f217cf762233589cc3efd13 Mon Sep 17 00:00:00 2001
|
||
|
From: Wei Yongjun <weiyongjun1@huawei.com>
|
||
|
Date: Fri, 26 Mar 2021 02:47:41 +0000
|
||
|
Subject: [PATCH 06/16] 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 <dan.carpenter@oracle.com>
|
||
|
Fixes: 0af65b9b915e ("remoteproc: qcom: wcss: Add non pas wcss Q6 support for QCS404")
|
||
|
Reported-by: Hulk Robot <hulkci@huawei.com>
|
||
|
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
|
||
|
Link: https://lore.kernel.org/r/20210326024741.841267-1-weiyongjun1@huawei.com
|
||
|
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
|
||
|
---
|
||
|
drivers/remoteproc/qcom_q6v5_wcss.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
--- 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 q
|
||
|
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");
|