diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2019-01-09 23:24:26 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-10 09:33:15 +0100 |
commit | 864fb024cf82ae4ffc9f2c6ecd701a0dc6ec568b (patch) | |
tree | c74fdd304cdfa066325b888c676bdd7bd39e79c8 /drivers/serial | |
parent | 14e53b18ac8c79311394f2f699e3565e35f7f13c (diff) | |
download | barebox-864fb024cf82ae4ffc9f2c6ecd701a0dc6ec568b.tar.gz barebox-864fb024cf82ae4ffc9f2c6ecd701a0dc6ec568b.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/amba-pl011.c b/drivers/serial/amba-pl011.c index 4c4067d5b5..99b82e3c03 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); |