earlycon: Remove hardcoded port->uartclk initialization in of_setup_earlycon
authorMichal Simek <michal.simek@xilinx.com>
Wed, 25 Apr 2018 13:48:42 +0000 (15:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2018 11:41:05 +0000 (13:41 +0200)
There is no reason to initialize uartclk to BASE_BAUD * 16 for DT based
systems.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Matt Redfearn <matt.redfearn@mips.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/earlycon.c

index 149d0d0..c14873b 100644 (file)
@@ -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)