]> git.karo-electronics.de Git - linux-beck.git/commitdiff
serial: MIPS: lantiq: add clk_enable() call to driver
authorThomas Langer <thomas.langer@lantiq.com>
Fri, 9 Aug 2013 18:54:30 +0000 (20:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 18:37:47 +0000 (11:37 -0700)
Enable the clock if one is present when setting up the console.

Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
Acked-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/lantiq.c

index 15733da757c66b22012845f81443b5bf13c96f05..93ac04686eb95f63e52052262fb591c4bbeea687 100644 (file)
@@ -636,6 +636,9 @@ lqasc_console_setup(struct console *co, char *options)
 
        port = &ltq_port->port;
 
+       if (!IS_ERR(ltq_port->clk))
+               clk_enable(ltq_port->clk);
+
        port->uartclk = clk_get_rate(ltq_port->fpiclk);
 
        if (options)