diff options
author | Konrad Zapalowicz <bergo.torino@gmail.com> | 2014-11-08 20:22:19 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-25 20:06:38 -0500 |
commit | 5b05e2cbf5b38dfb2410d23adc26703fd37f84f9 (patch) | |
tree | 2edb1b6301b93c632f452c4101b0e4a02a655d5c /drivers/tty | |
parent | 245ae51cec684aa1a3e6e35afdf2a6c93d371b32 (diff) |
serial: jsm: Replace magic value with the proper define
The changed function flushes the tx UART and the '4' corresponds to the
UART_FCR_CLEAR_XMIT value. This commit replaces the magic number with
this define.
Signed-off-by: Konrad Zapalowicz <bergo.torino@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/jsm/jsm_neo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/jsm/jsm_neo.c b/drivers/tty/serial/jsm/jsm_neo.c index 5de6dffbdc0c..7291c2117daa 100644 --- a/drivers/tty/serial/jsm/jsm_neo.c +++ b/drivers/tty/serial/jsm/jsm_neo.c | |||
@@ -644,7 +644,7 @@ static void neo_flush_uart_write(struct jsm_channel *ch) | |||
644 | 644 | ||
645 | /* Check to see if the UART feels it completely flushed the FIFO. */ | 645 | /* Check to see if the UART feels it completely flushed the FIFO. */ |
646 | tmp = readb(&ch->ch_neo_uart->isr_fcr); | 646 | tmp = readb(&ch->ch_neo_uart->isr_fcr); |
647 | if (tmp & 4) { | 647 | if (tmp & UART_FCR_CLEAR_XMIT) { |
648 | jsm_dbg(IOCTL, &ch->ch_bd->pci_dev, | 648 | jsm_dbg(IOCTL, &ch->ch_bd->pci_dev, |
649 | "Still flushing TX UART... i: %d\n", i); | 649 | "Still flushing TX UART... i: %d\n", i); |
650 | udelay(10); | 650 | udelay(10); |