projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6734a83
)
serial: MIPS: lantiq: add clk_enable() call to driver
author
Thomas Langer
<thomas.langer@lantiq.com>
Fri, 9 Aug 2013 18:54:30 +0000
(20:54 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 18:37:47 +0000
(11:37 -0700)
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>
drivers/tty/serial/lantiq.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/lantiq.c
b/drivers/tty/serial/lantiq.c
index 15733da757c66b22012845f81443b5bf13c96f05..93ac04686eb95f63e52052262fb591c4bbeea687 100644
(file)
--- 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)