serial: mvebu-uart: fix return value check in mvebu_uart_clock_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 1 Mar 2022 07:58:06 +0000 (07:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Mar 2022 21:17:10 +0000 (22:17 +0100)
commit47b95e8ab731511b7ed7924ec3ec922e14737e4e
tree3faccc46a208a4fcc321d657f40e91190c09fe74
parent6e124e58ae2e0e3f6400dce21e942a94a67a7949
serial: mvebu-uart: fix return value check in mvebu_uart_clock_probe()

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

Fixes: b7e2b5360f9b ("serial: mvebu-uart: implement UART clock driver for configuring UART base clock")
Reported-by: Hulk Robot <hulkci@huawei.com>
Reviewed-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20220301075806.3950108-1-weiyongjun1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mvebu-uart.c