tty: serial: mxs-auart: fix error handling in mxs_auart_probe
authorBranislav Radocaj <branislav@radocaj.org>
Thu, 7 Dec 2017 13:11:47 +0000 (14:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Dec 2017 19:27:44 +0000 (20:27 +0100)
commit5c3055393f5fdd0bdc4b69b1fb362b1c3f4266b4
tree480aafd0e44036ae168fda3a1be54224d8135e42
parent6a28fd2bbc94bfca105632e5ef8a9dbe63ba0b39
tty: serial: mxs-auart: fix error handling in mxs_auart_probe

If uart_add_one_port() fails in mxs_auart_probe, the clks has
to be disabled.Two clks are previously enabled in mxs_get_clks().
Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Branislav Radocaj <branislav@radocaj.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c