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

Commit 5771a805 authored by Tony Prisk's avatar Tony Prisk Committed by Greg Kroah-Hartman
Browse files

tty: serial: vt8500: Unneccessary duplicated clock code removed



Remove the extra code left over when the serial driver was changed
to require a clock. There is no fallback to 24Mhz as a clock is
now required.

Also remove a second call to of_clk_get which is unnecessary.

Signed-off-by: default avatarTony Prisk <linux@prisktech.co.nz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 09081e5b
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -611,14 +611,7 @@ static int vt8500_serial_probe(struct platform_device *pdev)
	vt8500_port->uart.dev = &pdev->dev;
	vt8500_port->uart.flags = UPF_IOREMAP | UPF_BOOT_AUTOCONF;

	vt8500_port->clk = of_clk_get(pdev->dev.of_node, 0);
	if (!IS_ERR(vt8500_port->clk)) {
	vt8500_port->uart.uartclk = clk_get_rate(vt8500_port->clk);
	} else {
		/* use the default of 24Mhz if not specified and warn */
		pr_warn("%s: serial clock source not specified\n", __func__);
		vt8500_port->uart.uartclk = 24000000;
	}

	snprintf(vt8500_port->name, sizeof(vt8500_port->name),
		 "VT8500 UART%d", pdev->id);