kernel/3.10: refresh all target patches
[openwrt/svn-archive/archive.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 --- a/drivers/tty/serial/lantiq.c
15 +++ b/drivers/tty/serial/lantiq.c
16 @@ -636,6 +636,9 @@ lqasc_console_setup(struct console *co,
17
18 port = &ltq_port->port;
19
20 + if (!IS_ERR(ltq_port->clk))
21 + clk_enable(ltq_port->clk);
22 +
23 port->uartclk = clk_get_rate(ltq_port->fpiclk);
24
25 if (options)