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

Commit 182ead3e authored by Michal Simek's avatar Michal Simek Committed by Greg Kroah-Hartman
Browse files

earlycon: Remove hardcoded port->uartclk initialization in of_setup_earlycon



There is no reason to initialize uartclk to BASE_BAUD * 16 for DT based
systems.

Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Tested-by: default avatarMatt Redfearn <matt.redfearn@mips.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4a7e625c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -246,7 +246,6 @@ int __init of_setup_earlycon(const struct earlycon_id *match,
		return -ENXIO;
	}
	port->mapbase = addr;
	port->uartclk = BASE_BAUD * 16;

	val = of_get_flat_dt_prop(node, "reg-offset", NULL);
	if (val)