ramips: update v3.10 patches
[openwrt.git] / target / linux / ramips / patches-3.10 / 0007-serial-MIPS-lantiq-add-clk_enable-call-to-driver.patch
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
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)