]> git.baikalelectronics.ru Git - kernel.git/commit
serial: imx: fix error handling in console_setup
authorStefan Agner <stefan@agner.ch>
Wed, 14 Nov 2018 17:49:38 +0000 (18:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2018 08:56:20 +0000 (09:56 +0100)
commit908658aa977716dffb6812dc8f1d83fe7fb5fb1e
tree5ced0ca1332f9f91c55dda544e605e2a0f9bef69
parent53bcd72bb6b40073ecf646f4ea8c02a9db666203
serial: imx: fix error handling in console_setup

The ipg clock only needs to be unprepared in case preparing
per clock fails. The ipg clock has already disabled at the point.

Fixes: 4b0f8ff690c9 ("serial: imx: remove the uart_console() check")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c