1 From 0b78522f6e136fa5901e72cdbf4a44693d100826 Mon Sep 17 00:00:00 2001
2 From: Thomas Langer <thomas.langer@lantiq.com>
3 Date: Sun, 28 Jul 2013 14:44:44 +0200
4 Subject: [PATCH 07/25] serial: MIPS: lantiq: add clk_enable() call to driver
6 Enable the clock if one is present when setting up the console.
8 Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
9 Acked-by: John Crispin <blogic@openwrt.org>
11 drivers/tty/serial/lantiq.c | 3 +++
12 1 file changed, 3 insertions(+)
14 --- a/drivers/tty/serial/lantiq.c
15 +++ b/drivers/tty/serial/lantiq.c
16 @@ -636,6 +636,9 @@ lqasc_console_setup(struct console *co,
18 port = <q_port->port;
20 + if (!IS_ERR(ltq_port->clk))
21 + clk_enable(ltq_port->clk);
23 port->uartclk = clk_get_rate(ltq_port->fpiclk);