Home
last modified time | relevance | path

Searched hist:"4 d5a91fd1f42a821d14b92b082b8e71be9911ba5" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/hwspinlock/
H A Dstm32_hwspinlock.cdiff 4d5a91fd1f42a821d14b92b082b8e71be9911ba5 Thu Jan 03 08:02:30 CET 2019 Wei Yongjun <weiyongjun1@huawei.com> hwspinlock: fix return value check in stm32_hwspinlock_probe()

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

Fixes: f24fcff1d267 ("hwspinlock: add STM32 hwspinlock device")
Acked-by: Benjamin Gaignard <benjamin.gaignard@gmail.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>