[PATCH v1 02/24] serial: mpc512x: prepare clocks before enabling them
Gerhard Sittig
gsi at denx.de
Mon Jul 15 14:47:31 EDT 2013
clocks need to get prepared before they can get enabled, and after
disabling them they can get unprepared
Signed-off-by: Gerhard Sittig <gsi at denx.de>
---
drivers/tty/serial/mpc52xx_uart.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/serial/mpc52xx_uart.c b/drivers/tty/serial/mpc52xx_uart.c
index e1280a2..53c1093 100644
--- a/drivers/tty/serial/mpc52xx_uart.c
+++ b/drivers/tty/serial/mpc52xx_uart.c
@@ -636,9 +636,9 @@ static int mpc512x_psc_clock(struct uart_port *port, int enable)
dev_dbg(port->dev, "%s %sable\n", clk_name, enable ? "en" : "dis");
if (enable)
- clk_enable(psc_clk);
+ clk_prepare_enable(psc_clk);
else
- clk_disable(psc_clk);
+ clk_disable_unprepare(psc_clk);
return 0;
}
--
1.7.10.4
More information about the linux-arm-kernel
mailing list