summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>2019-11-12 13:41:09 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-13 16:54:15 +0300
commita00d9db8952b44f4d165e5200fff03c80a84947f (patch)
treeac56b0897e7ebfd4ef5030fc65849b78821fb414 /drivers/tty
parentd338838c09dee338dd86f479f554d18401068978 (diff)
downloadlinux-a00d9db8952b44f4d165e5200fff03c80a84947f.tar.xz
serial-uartlite: Use allocated structure instead of static ones
Remove the use of the static uartlite structure. Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Link: https://lore.kernel.org/r/1573555271-2579-2-git-send-email-shubhrajyoti.datta@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/uartlite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c
index c93336189924..2cced6a09254 100644
--- a/drivers/tty/serial/uartlite.c
+++ b/drivers/tty/serial/uartlite.c
@@ -670,7 +670,7 @@ static int ulite_assign(struct device *dev, int id, u32 base, int irq,
#endif
/* Register the port */
- rc = uart_add_one_port(&ulite_uart_driver, port);
+ rc = uart_add_one_port(pdata->ulite_uart_driver, port);
if (rc) {
dev_err(dev, "uart_add_one_port() failed; err=%i\n", rc);
port->mapbase = 0;
@@ -681,7 +681,7 @@ static int ulite_assign(struct device *dev, int id, u32 base, int irq,
#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE
/* This is not port which is used for console that's why clean it up */
if (console_port == port &&
- !(ulite_uart_driver.cons->flags & CON_ENABLED))
+ !(pdata->ulite_uart_driver->cons->flags & CON_ENABLED))
console_port = NULL;
#endif