Skip to content

Commit

Permalink
earlycon: Remove hardcoded port->uartclk initialization in of_setup_e…
Browse files Browse the repository at this point in the history
…arlycon

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>
  • Loading branch information
Michal Simek authored and Greg Kroah-Hartman committed May 14, 2018
1 parent 4a7e625 commit 182ead3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/tty/serial/earlycon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 182ead3

Please sign in to comment.