aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/earlycon-arm-semihost.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/earlycon-arm-semihost.c')
-rw-r--r--drivers/tty/serial/earlycon-arm-semihost.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/serial/earlycon-arm-semihost.c b/drivers/tty/serial/earlycon-arm-semihost.c
index 383db10fbb49..6bbeb699777c 100644
--- a/drivers/tty/serial/earlycon-arm-semihost.c
+++ b/drivers/tty/serial/earlycon-arm-semihost.c
@@ -53,7 +53,8 @@ static void smh_write(struct console *con, const char *s, unsigned n)
uart_console_write(&dev->port, s, n, smh_putc);
}
-int __init early_smh_setup(struct earlycon_device *device, const char *opt)
+static int
+__init early_smh_setup(struct earlycon_device *device, const char *opt)
{
device->con->write = smh_write;
return 0;