diff options
author | Thomas Langer <thomas.langer@lantiq.com> | 2013-08-09 18:54:30 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-12 18:37:47 (GMT) |
commit | 7c658e6b46be5d90e6bb668659bb4de6ce80c536 (patch) | |
tree | 285ca828d15109b942f053a5fc74b064b0cba427 | |
parent | 6734a834fbb634d64b6a7a6a590ae0ccebe89c6a (diff) | |
download | linux-fsl-qoriq-7c658e6b46be5d90e6bb668659bb4de6ce80c536.tar.xz |
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>
-rw-r--r-- | drivers/tty/serial/lantiq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/tty/serial/lantiq.c b/drivers/tty/serial/lantiq.c index 15733da..93ac046 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 = <q_port->port; + if (!IS_ERR(ltq_port->clk)) + clk_enable(ltq_port->clk); + port->uartclk = clk_get_rate(ltq_port->fpiclk); if (options) |