serial: 8250_aspeed_vuart: initialize vuart->port in aspeed_vuart_probe()
authorZev Weiss <zev@bewilderbeest.net>
Mon, 10 May 2021 01:42:30 +0000 (20:42 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 May 2021 14:16:29 +0000 (16:16 +0200)
commitc9805fbf9d89c32c7ea4a6c5c3a66244aab06584
treea83d65e851857c72fe08bc669dd7d66d18853f76
parent991a350dff134d8e23bebc36ec16304bbd16f85f
serial: 8250_aspeed_vuart: initialize vuart->port in aspeed_vuart_probe()

Previously this had only been initialized if we hit the throttling path
in aspeed_vuart_handle_irq(); moving it to the probe function is a
slight consistency improvement and avoids redundant reinitialization in
the interrupt handler.  It also serves as preparation for converting the
driver's I/O accesses to use port->port.membase instead of its own
vuart->regs.

Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Link: https://lore.kernel.org/r/20210510014231.647-3-zev@bewilderbeest.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_aspeed_vuart.c