]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: imx8: Fix return value check in imx8_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 26 Aug 2019 12:00:03 +0000 (12:00 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 27 Aug 2019 18:21:54 +0000 (19:21 +0100)
commita5cf3a60da4d817326ea3eb446d495377d07b024
tree4cf1a2b8ccbb542ee1d6f75d736fb710fd10afa0
parent3b7d161c899da3c672e0bd3919059d178dee93ac
ASoC: SOF: imx8: Fix return value check in imx8_probe()

In case of error, the function devm_ioremap_wc() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check should be
replaced with NULL test.

Fixes: f8612cb94e5f ("ASoC: SOF: imx: Add i.MX8 HW support")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20190826120003.183279-1-weiyongjun1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/imx/imx8.c