summaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2016-07-14 12:57:44 +0000
committerBjorn Andersson <bjorn.andersson@linaro.org>2016-07-14 19:58:48 -0700
commitb1653f23ea464b60445ee0d7cf569b3ed6fa3f0b (patch)
treea03260a02cfc48a6b6ab3826727dbb3090f0f487 /drivers/remoteproc
parent051fb70fd4ea40fbc7139186a4890b2fe5cb1e76 (diff)
downloadlinux-b1653f23ea464b60445ee0d7cf569b3ed6fa3f0b.tar.bz2
remoteproc: qcom: remove redundant dev_err call in q6v5_init_mem()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r--drivers/remoteproc/qcom_q6v5_pil.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/remoteproc/qcom_q6v5_pil.c b/drivers/remoteproc/qcom_q6v5_pil.c
index fb4c56cc6dfc..9b0e1dd6cd8b 100644
--- a/drivers/remoteproc/qcom_q6v5_pil.c
+++ b/drivers/remoteproc/qcom_q6v5_pil.c
@@ -680,17 +680,13 @@ static int q6v5_init_mem(struct q6v5 *qproc, struct platform_device *pdev)
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "qdsp6");
qproc->reg_base = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(qproc->reg_base)) {
- dev_err(qproc->dev, "failed to get qdsp6_base\n");
+ if (IS_ERR(qproc->reg_base))
return PTR_ERR(qproc->reg_base);
- }
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rmb");
qproc->rmb_base = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(qproc->rmb_base)) {
- dev_err(qproc->dev, "failed to get rmb_base\n");
+ if (IS_ERR(qproc->rmb_base))
return PTR_ERR(qproc->rmb_base);
- }
ret = of_parse_phandle_with_fixed_args(pdev->dev.of_node,
"qcom,halt-regs", 3, 0, &args);