lantiq: add v3.10 patches
[openwrt/openwrt.git] / target / linux / lantiq / patches-3.10 / 0029-serial-MIPS-lantiq-add-clk_enable-call-to-driver.patch
1 From 07cddcb5820db42cadcc4627aad7391816b63b34 Mon Sep 17 00:00:00 2001
2 From: Thomas Langer <thomas.langer@lantiq.com>
3 Date: Fri, 9 Aug 2013 20:54:30 +0200
4 Subject: [PATCH 29/34] serial: MIPS: lantiq: add clk_enable() call to driver
5
6 Enable the clock if one is present when setting up the console.
7
8 Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
9 Acked-by: John Crispin <blogic@openwrt.org>
10 ---
11 drivers/tty/serial/lantiq.c | 3 +++
12 1 file changed, 3 insertions(+)
13
14 diff --git a/drivers/tty/serial/lantiq.c b/drivers/tty/serial/lantiq.c
15 index 15733da..93ac046 100644
16 --- a/drivers/tty/serial/lantiq.c
17 +++ b/drivers/tty/serial/lantiq.c
18 @@ -636,6 +636,9 @@ lqasc_console_setup(struct console *co, char *options)
19
20 port = &ltq_port->port;
21
22 + if (!IS_ERR(ltq_port->clk))
23 + clk_enable(ltq_port->clk);
24 +
25 port->uartclk = clk_get_rate(ltq_port->fpiclk);
26
27 if (options)
28 --
29 1.7.10.4
30