ASoC: SOF: imx: Fix devm_ioremap_resource check
authorDaniel Baluta <daniel.baluta@nxp.com>
Tue, 2 Sep 2025 10:21:00 +0000 (13:21 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 2 Sep 2025 11:51:32 +0000 (12:51 +0100)
commit0c28431f6fe13f3a3be0978f79c1a7ae8a93d028
tree88680f4d424175814fcdbbc1fb9db0fbc10cdf19
parent28edfaa10ca1b370b1a27fde632000d35c43402c
ASoC: SOF: imx: Fix devm_ioremap_resource check

devm_ioremap_resource does not return NULL on error
but an error pointer so we need to use IS_ERR to check
the return code.

While at it also pass the error code to dev_err_probe
to improve logging.

Fixes: bc163baef570 ("ASoC: Use of_reserved_mem_region_to_resource() for "memory-region"")
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://patch.msgid.link/20250902102101.378809-1-daniel.baluta@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/imx/imx-common.c