Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c658e6b authored by Thomas Langer's avatar Thomas Langer Committed by Greg Kroah-Hartman
Browse files

serial: MIPS: lantiq: add clk_enable() call to driver



Enable the clock if one is present when setting up the console.

Signed-off-by: default avatarThomas Langer <thomas.langer@lantiq.com>
Acked-by: default avatarJohn Crispin <blogic@openwrt.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6734a834
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)