serial: mxs-auart: Disable clock on error path
authorFabio Estevam <fabio.estevam@nxp.com>
Fri, 9 Sep 2016 11:31:33 +0000 (08:31 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Sep 2016 16:54:34 +0000 (18:54 +0200)
commit5d7519dfc963ec8b6a10a51356840580fc005a1e
treef4e90974c11ba3d92c5ffa1f2263aee61b1f3043
parent8b2303de399f66b0da2c7e5bcc8296be574766f1
serial: mxs-auart: Disable clock on error path

We should disable the previously acquired clock when enabling s->clk
fails.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c