summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/lantiq.c
diff options
context:
space:
mode:
authorThomas Langer <thomas.langer@lantiq.com>2013-08-09 20:54:30 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-12 20:37:47 +0200
commit7c658e6b46be5d90e6bb668659bb4de6ce80c536 (patch)
tree285ca828d15109b942f053a5fc74b064b0cba427 /drivers/tty/serial/lantiq.c
parentserial: bfin_uart: Fix incorrect placement of __initdata (diff)
downloadlinux-7c658e6b46be5d90e6bb668659bb4de6ce80c536.tar.xz
linux-7c658e6b46be5d90e6bb668659bb4de6ce80c536.zip
serial: MIPS: lantiq: add clk_enable() call to driver
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>
Diffstat (limited to 'drivers/tty/serial/lantiq.c')
-rw-r--r--drivers/tty/serial/lantiq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/tty/serial/lantiq.c b/drivers/tty/serial/lantiq.c
index 15733da757c6..93ac04686eb9 100644
--- a/drivers/tty/serial/lantiq.c
+++ b/drivers/tty/serial/lantiq.c
@@ -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)