serial: imx: remove the uart_console() check
authorHuang Shijie <b32955@freescale.com>
Fri, 28 Jun 2013 05:39:42 +0000 (13:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2013 22:42:46 +0000 (15:42 -0700)
commit1cf93e0d5488e27270ece49e8c293d546140d144
tree1a90267763d7289057a656fceca22a6c841faf57
parent43b829b3c1aa8d4f748a8e68724df476d242365a
serial: imx: remove the uart_console() check

The uart_console() check makes the clocks(clk_per and clk_ipg) opened
even when we close the console uart.

This patch enable/disable the clocks in imx_console_write(),
so we can keep the clocks closed when the console uart is closed.

Also remove the clock enable/disable oprations in the probe, we do not
need them any more.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c