mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 16:02:57 +00:00
In case of error, the function of_iomap() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. And the function devm_regmap_init_mmio() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun <[email protected]> Acked-by: Rajendra Nayak <[email protected]> Signed-off-by: Zhang Rui <[email protected]>