|
@@ -901,8 +901,10 @@ static void imx_shutdown(struct uart_port *port)
|
|
|
writel(temp, sport->port.membase + UCR1);
|
|
writel(temp, sport->port.membase + UCR1);
|
|
|
spin_unlock_irqrestore(&sport->port.lock, flags);
|
|
spin_unlock_irqrestore(&sport->port.lock, flags);
|
|
|
|
|
|
|
|
- clk_disable_unprepare(sport->clk_per);
|
|
|
|
|
- clk_disable_unprepare(sport->clk_ipg);
|
|
|
|
|
|
|
+ if (!uart_console(&sport->port)) {
|
|
|
|
|
+ clk_disable_unprepare(sport->clk_per);
|
|
|
|
|
+ clk_disable_unprepare(sport->clk_ipg);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
static void
|