]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
msm_serial: Convert to clk_prepare/unprepare
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 4 Jun 2013 19:25:27 +0000 (12:25 -0700)
committerDavid Brown <davidb@codeaurora.org>
Wed, 12 Jun 2013 21:43:27 +0000 (14:43 -0700)
Add calls to clk_prepare and unprepare so that MSM can migrate to
the common clock framework.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
drivers/tty/serial/msm_serial.c

index b11e99797fd8016815feb7d9999b0f35df62eb3b..01496035304eabb43c526ee9cfbbb22af161492b 100644 (file)
@@ -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);