serial: 8250_uniphier: fix error return code in uniphier_uart_probe()
commit7defa77d2baca4d6eb85234f10f38ab618332e75
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 4 Jan 2018 07:42:15 +0000 (4 07:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Jan 2018 15:45:17 +0000 (9 16:45 +0100)
tree1769ce6782d6026a0dd865d25874545762a62144
parentea3d8465ab9b3e01be329ac5195970a84bef76c5
serial: 8250_uniphier: fix error return code in uniphier_uart_probe()

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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_uniphier.c