remoteproc: k3-dsp: Fix return value check in k3_dsp_rproc_of_get_memories()
authorYueHaibing <yuehaibing@huawei.com>
Sat, 5 Sep 2020 12:25:03 +0000 (20:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:48 +0000 (11:53 +0100)
commit2fc6cdb1d67ef7ff68d861fbce745f3f2dc54673
tree624a391f28356851c95ed9511fba56bd752b3fcb
parentf1bf8c9f49adacb32584b1213b94a813ec565cf3
remoteproc: k3-dsp: Fix return value check in k3_dsp_rproc_of_get_memories()

[ Upstream commit 6dfdf6e4e7096fead7755d47d91d72e896bb4804 ]

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.

Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Fixes: 6edbe024ba17 ("remoteproc: k3-dsp: Add a remoteproc driver of K3 C66x DSPs")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Suman Anna <s-anna@ti.com>
Link: https://lore.kernel.org/r/20200905122503.17352-1-yuehaibing@huawei.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/remoteproc/ti_k3_dsp_remoteproc.c