]> git.baikalelectronics.ru Git - kernel.git/commit
video: fbdev: imxfb: fix return value check in imxfb_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 29 Jul 2022 02:41:34 +0000 (10:41 +0800)
committerHelge Deller <deller@gmx.de>
Fri, 29 Jul 2022 20:59:05 +0000 (22:59 +0200)
commitbf4606887c9e4625d8fa6041a595af6c50841ff6
tree4ac4333c953953f757e477cd844e5b494eb13b38
parentaa82ba27d9eb63761afd849b76cc443934743640
video: fbdev: imxfb: fix return value check in imxfb_probe()

If devm_ioremap_resource() fails, it never return NULL, replace
NULL test with IS_ERR().

Fixes: a87b08ad4689 ("video: fbdev: imxfb: Convert request_mem_region + ioremap to devm_ioremap_resource")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/imxfb.c