aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stultz <[email protected]>2020-01-07 01:03:10 +0000
committerGreg Kroah-Hartman <[email protected]>2020-01-10 14:01:32 +0100
commit488f49acecaedc64be54f5b2be7ce8dcc568646c (patch)
tree9a0e9bf23aa56d7ca784314b0af2fc8f7008a4e7
parentb4b844930f27bf7019c0bbd8cc575dde32e00ecc (diff)
tty: serial_core: Export uart_console_device so it can be used by modules
In order to support serial console w/ SERIAL_QCOM_GENI=m, we need to export the uart_console_device() symbol so things will build Cc: Todd Kjos <[email protected]> Cc: Alistair Delva <[email protected]> Cc: Bjorn Andersson <[email protected]> Cc: Amit Pundir <[email protected]> Cc: Jiri Slaby <[email protected]> Cc: [email protected] Signed-off-by: John Stultz <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/tty/serial/serial_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
index 7c2782785736..7b87c08f5bcb 100644
--- a/drivers/tty/serial/serial_core.c
+++ b/drivers/tty/serial/serial_core.c
@@ -2603,6 +2603,7 @@ struct tty_driver *uart_console_device(struct console *co, int *index)
*index = co->index;
return p->tty_driver;
}
+EXPORT_SYMBOL_GPL(uart_console_device);
static ssize_t uart_get_attr_uartclk(struct device *dev,
struct device_attribute *attr, char *buf)