serial: uartps: Do not use static struct uart_driver out of probe()
authorMichal Simek <michal.simek@xilinx.com>
Mon, 3 Sep 2018 13:10:52 +0000 (15:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Sep 2018 14:07:22 +0000 (16:07 +0200)
commit46a460f0150ab4751d19923ce1199e787ee21879
tree8e9fd5bb862778efd02c397bd100c7f7b7bd280e
parent4b9d33c6a30688344a3e95179654ea31b07f59b7
serial: uartps: Do not use static struct uart_driver out of probe()

cdns_uart_suspend()/resume() and remove() are using static reference
to struct uart_driver. Assign this reference to private data structure
as preparation step for dynamic struct uart_driver allocation.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c