coresight: tpda: fix return value check in tpda_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Sun, 29 Jan 2023 08:42:46 +0000 (16:42 +0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 30 Jan 2023 09:42:35 +0000 (09:42 +0000)
commitc88a15d9dd7dfabe2a13473fd1f9c4b9cd1b62c9
tree32a81036b216a1471abe64e5f0083e8871ae62ef
parent0c1ccc158bbc4d14fe1a52e99f3933f34f309dac
coresight: tpda: fix return value check in tpda_probe()

devm_ioremap_resource() never returns NULL pointer, it
will return ERR_PTR() when it fails, so replace the check
with IS_ERR().

Fixes: 5b7916625c01 ("Coresight: Add TPDA link driver")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
[ Fix return value to the PTR_ERR(base) ]
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230129084246.537694-1-yangyingliang@huawei.com
drivers/hwtracing/coresight/coresight-tpda.c