Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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>

authored by

Thomas Langer and committed by
Greg Kroah-Hartman
7c658e6b 6734a834

+3
+3
drivers/tty/serial/lantiq.c
··· 636 636 637 637 port = &ltq_port->port; 638 638 639 + if (!IS_ERR(ltq_port->clk)) 640 + clk_enable(ltq_port->clk); 641 + 639 642 port->uartclk = clk_get_rate(ltq_port->fpiclk); 640 643 641 644 if (options)