remoteproc: imx_rproc: correct err message
authorPeng Fan <peng.fan@nxp.com>
Sat, 6 Mar 2021 11:24:20 +0000 (19:24 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 11 Mar 2021 18:02:43 +0000 (12:02 -0600)
It is using devm_ioremap, so not devm_ioremap_resource. Correct
the error message and print out sa/size.

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/1615029865-23312-6-git-send-email-peng.fan@oss.nxp.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/imx_rproc.c

index 6603e00bb6f4c482e1b3b4e3a09bf636fa857628..2a093cea49978b5520e67764af08ea6a4af10e02 100644 (file)
@@ -268,7 +268,7 @@ static int imx_rproc_addr_init(struct imx_rproc *priv,
                priv->mem[b].cpu_addr = devm_ioremap(&pdev->dev,
                                                     att->sa, att->size);
                if (!priv->mem[b].cpu_addr) {
-                       dev_err(dev, "devm_ioremap_resource failed\n");
+                       dev_err(dev, "failed to remap %#x bytes from %#x\n", att->size, att->sa);
                        return -ENOMEM;
                }
                priv->mem[b].sys_addr = att->sa;
@@ -298,7 +298,7 @@ static int imx_rproc_addr_init(struct imx_rproc *priv,
 
                priv->mem[b].cpu_addr = devm_ioremap_resource(&pdev->dev, &res);
                if (IS_ERR(priv->mem[b].cpu_addr)) {
-                       dev_err(dev, "devm_ioremap_resource failed\n");
+                       dev_err(dev, "failed to remap %pr\n", &res);
                        err = PTR_ERR(priv->mem[b].cpu_addr);
                        return err;
                }