remoteproc: imx_rproc: use devm_ioremap
authorPeng Fan <peng.fan@nxp.com>
Sat, 6 Mar 2021 11:24:21 +0000 (19:24 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 11 Mar 2021 18:02:43 +0000 (12:02 -0600)
commitecadcc47492cc73a9bb92fbf16098192df514b87
treeb98035ac016f596cbbd10c8e8853fc8574fcbecb
parent1896b3d82c555eaec6f6bde0c8d12377060bb22d
remoteproc: imx_rproc: use devm_ioremap

We might need to map an region multiple times, becaue the region might
be shared between remote processors, such i.MX8QM with dual M4 cores.
So use devm_ioremap, not devm_ioremap_resource.

Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/1615029865-23312-7-git-send-email-peng.fan@oss.nxp.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/imx_rproc.c