serial: 8250_uniphier: fix error return code in uniphier_uart_probe()
commitc0dbcbb52e8ccc4044d9c42cbe4bc56e82121bfd
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 4 Jan 2018 07:42:15 +0000 (4 07:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Feb 2018 16:58:41 +0000 (3 17:58 +0100)
tree18ebd1f45ec07f6607a0e40a0010d248ca6046cd
parent970aeba3f3e5d46352244c997d33800eeb0fcb4a
serial: 8250_uniphier: fix error return code in uniphier_uart_probe()

commit 7defa77d2baca4d6eb85234f10f38ab618332e75 upstream.

Fix to return a negative error code from the port register error
handling case instead of 0, as done elsewhere in this function.

Fixes: 39be40ce066d ("serial: 8250_uniphier: fix serial port index in private data")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_uniphier.c