Merge tag 'dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[~shefty/rdma-dev.git] / drivers / tty / serial / pxa.c
index cdf4b2bfad8091efdcc0144e3fa2d9c0fa3a76dd..5847a4b855f74804d327cca6490cade872f673d2 100644 (file)
@@ -582,9 +582,9 @@ serial_pxa_pm(struct uart_port *port, unsigned int state,
        struct uart_pxa_port *up = (struct uart_pxa_port *)port;
 
        if (!state)
-               clk_enable(up->clk);
+               clk_prepare_enable(up->clk);
        else
-               clk_disable(up->clk);
+               clk_disable_unprepare(up->clk);
 }
 
 static void serial_pxa_release_port(struct uart_port *port)
@@ -671,7 +671,7 @@ serial_pxa_console_write(struct console *co, const char *s, unsigned int count)
        struct uart_pxa_port *up = serial_pxa_ports[co->index];
        unsigned int ier;
 
-       clk_enable(up->clk);
+       clk_prepare_enable(up->clk);
 
        /*
         *      First save the IER then disable the interrupts
@@ -688,7 +688,7 @@ serial_pxa_console_write(struct console *co, const char *s, unsigned int count)
        wait_for_xmitr(up);
        serial_out(up, UART_IER, ier);
 
-       clk_disable(up->clk);
+       clk_disable_unprepare(up->clk);
 }
 
 static int __init