serial: 8250_uniphier: fix error return code in uniphier_uart_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 4 Jan 2018 07:42:15 +0000 (07:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Feb 2018 16:39:23 +0000 (17:39 +0100)
commit24293a3970e11889cc123d3f0cf9bb9bbb2cf34f
tree34d2f4a53290c69ebc263d5a1e9bc6a471cbbfd1
parentaa33208b5a6f0014d9b7d966f61bd6c4f8cd9729
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