diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2013-06-17 10:43:08 -0700 |
---|---|---|
committer | David Brown <davidb@codeaurora.org> | 2013-06-24 13:06:41 -0700 |
commit | f98cf83d0c7c6bf803a75eb1e7c99b6457f12f98 (patch) | |
tree | 9d5af49adf289229e22eb1fbfe49ca3e1c9e423c /drivers/tty | |
parent | f722406faae2d073cc1d01063d1123c35425939e (diff) | |
download | kernel_goldelico_gta04-f98cf83d0c7c6bf803a75eb1e7c99b6457f12f98.zip kernel_goldelico_gta04-f98cf83d0c7c6bf803a75eb1e7c99b6457f12f98.tar.gz kernel_goldelico_gta04-f98cf83d0c7c6bf803a75eb1e7c99b6457f12f98.tar.bz2 |
msm_serial: Convert to clk_prepare/unprepare
Add calls to clk_prepare and unprepare so that MSM can migrate to
the common clock framework.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/msm_serial.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c index b11e997..0149603 100644 --- a/drivers/tty/serial/msm_serial.c +++ b/drivers/tty/serial/msm_serial.c @@ -408,9 +408,9 @@ static void msm_init_clock(struct uart_port *port) { struct msm_port *msm_port = UART_TO_MSM(port); - clk_enable(msm_port->clk); + clk_prepare_enable(msm_port->clk); if (!IS_ERR(msm_port->pclk)) - clk_enable(msm_port->pclk); + clk_prepare_enable(msm_port->pclk); msm_serial_set_mnd_regs(port); } @@ -486,7 +486,7 @@ static void msm_shutdown(struct uart_port *port) msm_port->imr = 0; msm_write(port, 0, UART_IMR); /* disable interrupts */ - clk_disable(msm_port->clk); + clk_disable_unprepare(msm_port->clk); free_irq(port->irq, port); } @@ -688,14 +688,14 @@ static void msm_power(struct uart_port *port, unsigned int state, switch (state) { case 0: - clk_enable(msm_port->clk); + clk_prepare_enable(msm_port->clk); if (!IS_ERR(msm_port->pclk)) - clk_enable(msm_port->pclk); + clk_prepare_enable(msm_port->pclk); break; case 3: - clk_disable(msm_port->clk); + clk_disable_unprepare(msm_port->clk); if (!IS_ERR(msm_port->pclk)) - clk_disable(msm_port->pclk); + clk_disable_unprepare(msm_port->pclk); break; default: printk(KERN_ERR "msm_serial: Unknown PM state %d\n", state); |