serial-uartlite: Do not use static struct uart_driver out of probe()
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Tue, 16 Oct 2018 10:18:02 +0000 (15:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Nov 2018 16:45:07 +0000 (08:45 -0800)
commit3b209d253e7f8aa01fde0233d38a7239c8f7beb3
tree7fce4b702e30de3114ccc420345750a646f1b1a9
parent62104b280a5a5d999c562d8e8f4c6c4eb97fb013
serial-uartlite: Do not use static struct uart_driver out of probe()

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

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