summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/remoteproc/imx_dsp_rproc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/remoteproc/imx_dsp_rproc.c b/drivers/remoteproc/imx_dsp_rproc.c
index be83b5f20f15..5130a35214c9 100644
--- a/drivers/remoteproc/imx_dsp_rproc.c
+++ b/drivers/remoteproc/imx_dsp_rproc.c
@@ -710,9 +710,9 @@ static int imx_dsp_rproc_add_carveout(struct imx_dsp_rproc *priv)
return -EINVAL;
cpu_addr = devm_ioremap_resource_wc(dev, &res);
- if (!cpu_addr) {
+ if (IS_ERR(cpu_addr)) {
dev_err(dev, "failed to map memory %pR\n", &res);
- return -ENOMEM;
+ return PTR_ERR(cpu_addr);
}
/* Register memory region */