serial: 8250_early: Use port->regshift
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 16 Jan 2016 23:23:47 +0000 (15:23 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 06:07:37 +0000 (22:07 -0800)
commitdc6b576b283e7bdff552af9c0ce66e121c6b4887
treec059548c6e2523588e13a429f4f904d5c6e0d40a
parentb969398490d940a98cec0aefcafb9877dc122182
serial: 8250_early: Use port->regshift

earlycon initializes struct uart_port::regshift to the correct
value for UPIO_MEM32 already. Use the port field rather than
hard-coded value.

This enables broader support for various i/o access methods in
8250 earlycon (eg., omap8250 earlycon).

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_early.c