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>
|
||
|---|---|---|
| .. | ||
| hwspinlock_core.c | ||
| hwspinlock_internal.h | ||
| Kconfig | ||
| Makefile | ||
| omap_hwspinlock.c | ||
| qcom_hwspinlock.c | ||
| sirf_hwspinlock.c | ||
| sprd_hwspinlock.c | ||
| stm32_hwspinlock.c | ||
| u8500_hsem.c | ||