Skip to content

Commit

Permalink
serial: MIPS: lantiq: add clk_enable() call to driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Langer authored and Greg Kroah-Hartman committed Aug 12, 2013
1 parent 6734a83 commit 7c658e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/tty/serial/lantiq.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,9 @@ lqasc_console_setup(struct console *co, char *options)

port = &ltq_port->port;

if (!IS_ERR(ltq_port->clk))
clk_enable(ltq_port->clk);

port->uartclk = clk_get_rate(ltq_port->fpiclk);

if (options)
Expand Down

0 comments on commit 7c658e6

Please sign in to comment.