aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/tty/serial/mfd.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/tty/serial/mfd.c b/drivers/tty/serial/mfd.c
index 503dcc77b2bd..52c930fac210 100644
--- a/drivers/tty/serial/mfd.c
+++ b/drivers/tty/serial/mfd.c
@@ -293,7 +293,7 @@ static void serial_hsu_enable_ms(struct uart_port *port)
293 serial_out(up, UART_IER, up->ier); 293 serial_out(up, UART_IER, up->ier);
294} 294}
295 295
296void hsu_dma_tx(struct uart_hsu_port *up) 296static void hsu_dma_tx(struct uart_hsu_port *up)
297{ 297{
298 struct circ_buf *xmit = &up->port.state->xmit; 298 struct circ_buf *xmit = &up->port.state->xmit;
299 struct hsu_dma_buffer *dbuf = &up->txbuf; 299 struct hsu_dma_buffer *dbuf = &up->txbuf;
@@ -340,7 +340,8 @@ void hsu_dma_tx(struct uart_hsu_port *up)
340} 340}
341 341
342/* The buffer is already cache coherent */ 342/* The buffer is already cache coherent */
343void hsu_dma_start_rx_chan(struct hsu_dma_chan *rxc, struct hsu_dma_buffer *dbuf) 343static void hsu_dma_start_rx_chan(struct hsu_dma_chan *rxc,
344 struct hsu_dma_buffer *dbuf)
344{ 345{
345 dbuf->ofs = 0; 346 dbuf->ofs = 0;
346 347
@@ -386,7 +387,8 @@ static void serial_hsu_stop_tx(struct uart_port *port)
386 387
387/* This is always called in spinlock protected mode, so 388/* This is always called in spinlock protected mode, so
388 * modify timeout timer is safe here */ 389 * modify timeout timer is safe here */
389void hsu_dma_rx(struct uart_hsu_port *up, u32 int_sts, unsigned long *flags) 390static void hsu_dma_rx(struct uart_hsu_port *up, u32 int_sts,
391 unsigned long *flags)
390{ 392{
391 struct hsu_dma_buffer *dbuf = &up->rxbuf; 393 struct hsu_dma_buffer *dbuf = &up->rxbuf;
392 struct hsu_dma_chan *chan = up->rxc; 394 struct hsu_dma_chan *chan = up->rxc;
@@ -1183,7 +1185,7 @@ static struct console serial_hsu_console = {
1183#define SERIAL_HSU_CONSOLE NULL 1185#define SERIAL_HSU_CONSOLE NULL
1184#endif 1186#endif
1185 1187
1186struct uart_ops serial_hsu_pops = { 1188static struct uart_ops serial_hsu_pops = {
1187 .tx_empty = serial_hsu_tx_empty, 1189 .tx_empty = serial_hsu_tx_empty,
1188 .set_mctrl = serial_hsu_set_mctrl, 1190 .set_mctrl = serial_hsu_set_mctrl,
1189 .get_mctrl = serial_hsu_get_mctrl, 1191 .get_mctrl = serial_hsu_get_mctrl,