Skip to content
Commit 165b7643 authored by Yang Yingliang's avatar Yang Yingliang Committed by Jassi Brar
Browse files

mailbox: arm_mhuv2: Fix return value check in mhuv2_probe()



If devm_of_iomap() fails, it returns ERR_PTR() and never
return NULL, so replace NULL pointer check with IS_ERR()
to fix this problem.

Fixes: 5a6338cc ("mailbox: arm_mhuv2: Add driver")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
parent f2b53c29
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment