summaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2019-01-09 23:24:26 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2019-01-10 09:33:15 +0100
commit864fb024cf82ae4ffc9f2c6ecd701a0dc6ec568b (patch)
treec74fdd304cdfa066325b888c676bdd7bd39e79c8 /drivers/serial
parent14e53b18ac8c79311394f2f699e3565e35f7f13c (diff)
downloadbarebox-864fb024cf82ae4ffc9f2c6ecd701a0dc6ec568b.tar.gz
serial: amba-pl011: fix "no previous prototype for 'pl011_init_port'" warning
The patch fixes the following compiler's warning: drivers/serial/amba-pl011.c:151:5: warning: no previous prototype for ‘pl011_init_port’ [-Wmissing-prototypes] int pl011_init_port (struct console_device *cdev) ^~~~~~~~~~~~~~~ Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/amba-pl011.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/amba-pl011.c b/drivers/serial/amba-pl011.c
index 4c4067d..99b82e3 100644
--- a/drivers/serial/amba-pl011.c
+++ b/drivers/serial/amba-pl011.c
@@ -148,7 +148,7 @@ static void pl011_rlcr(struct amba_uart_port *uart, u32 lcr)
}
}
-int pl011_init_port (struct console_device *cdev)
+static int pl011_init_port(struct console_device *cdev)
{
struct amba_uart_port *uart = to_amba_uart_port(cdev);