[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1539685088-13465-8-git-send-email-shubhrajyoti.datta@gmail.com>
Date: Tue, 16 Oct 2018 15:48:06 +0530
From: <shubhrajyoti.datta@...il.com>
To: <linux-serial@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: <gregkh@...uxfoundation.org>, <jslaby@...e.com>,
<jacmet@...site.dk>,
Shubhrajyoti Datta <shubhrajyoti.datta@...inx.com>,
Michal Simek <michal.simek@...inx.com>
Subject: [LINUX PATCHv3 7/9] serial-uartlite: Use allocated structure instead of static ones
From: Shubhrajyoti Datta <shubhrajyoti.datta@...inx.com>
Remove the use of the static uartlite structure.
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@...inx.com>
Signed-off-by: Michal Simek <michal.simek@...inx.com>
---
drivers/tty/serial/uartlite.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c
index 9c99a1d9..20fe11f 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
--
2.1.1
Powered by blists - more mailing lists