aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/tty/serial/imx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index 78f809759ed7..415cec62073f 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -901,8 +901,10 @@ static void imx_shutdown(struct uart_port *port)
901 writel(temp, sport->port.membase + UCR1); 901 writel(temp, sport->port.membase + UCR1);
902 spin_unlock_irqrestore(&sport->port.lock, flags); 902 spin_unlock_irqrestore(&sport->port.lock, flags);
903 903
904 clk_disable_unprepare(sport->clk_per); 904 if (!uart_console(&sport->port)) {
905 clk_disable_unprepare(sport->clk_ipg); 905 clk_disable_unprepare(sport->clk_per);
906 clk_disable_unprepare(sport->clk_ipg);
907 }
906} 908}
907 909
908static void 910static void