diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-03-02 11:53:54 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-03-02 11:53:54 +0900 |
commit | c6efd46b98f30863ca3a9982312db87b826cf715 (patch) | |
tree | 289ee0e95d203be5f6c3e2330b6cb998394e0065 /drivers/serial/sh-sci.c | |
parent | 7d0b0a4434dd97d8e0731241aee586460f7fb7bd (diff) | |
download | kernel_samsung_tuna-c6efd46b98f30863ca3a9982312db87b826cf715.zip kernel_samsung_tuna-c6efd46b98f30863ca3a9982312db87b826cf715.tar.gz kernel_samsung_tuna-c6efd46b98f30863ca3a9982312db87b826cf715.tar.bz2 |
serial: sh-sci: Tidy up build warnings.
The recent sh-sci DMA support introduces a number of trivial build
warnings, clean them up.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/serial/sh-sci.c')
-rw-r--r-- | drivers/serial/sh-sci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/serial/sh-sci.c b/drivers/serial/sh-sci.c index f3841cd..980f394 100644 --- a/drivers/serial/sh-sci.c +++ b/drivers/serial/sh-sci.c @@ -685,7 +685,7 @@ static irqreturn_t sci_rx_interrupt(int irq, void *ptr) /* Calculate delay for 1.5 DMA buffers */ tout = (port->timeout - HZ / 50) * s->buf_len_rx * 3 / port->fifosize / 2; - dev_dbg(port->dev, "Rx IRQ: setup timeout in %u ms\n", + dev_dbg(port->dev, "Rx IRQ: setup timeout in %lu ms\n", tout * 1000 / HZ); if (tout < 2) tout = 2; @@ -999,7 +999,6 @@ static void sci_rx_dma_release(struct sci_port *s, bool enable_pio) { struct dma_chan *chan = s->chan_rx; struct uart_port *port = &s->port; - unsigned long flags; s->chan_rx = NULL; s->cookie_rx[0] = s->cookie_rx[1] = -EINVAL; @@ -1014,7 +1013,6 @@ static void sci_tx_dma_release(struct sci_port *s, bool enable_pio) { struct dma_chan *chan = s->chan_tx; struct uart_port *port = &s->port; - unsigned long flags; s->chan_tx = NULL; s->cookie_tx = -EINVAL; |