diff options
| author | Olivier Houchard <cognet@FreeBSD.org> | 2007-09-12 18:28:09 +0000 |
|---|---|---|
| committer | Olivier Houchard <cognet@FreeBSD.org> | 2007-09-12 18:28:09 +0000 |
| commit | 6037400b5a7c4abd3c4c4b08e04341c6b72d3014 (patch) | |
| tree | 5cbcf38e2b51bbc20d7d0945c943733f3f31e6ba | |
| parent | 245b20449181a11c8a933788441db3ed310bd057 (diff) | |
Notes
| -rw-r--r-- | sys/arm/sa11x0/uart_dev_sa1110.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm/sa11x0/uart_dev_sa1110.c b/sys/arm/sa11x0/uart_dev_sa1110.c index 35ff22bc00d3..f057453b0197 100644 --- a/sys/arm/sa11x0/uart_dev_sa1110.c +++ b/sys/arm/sa11x0/uart_dev_sa1110.c @@ -97,7 +97,7 @@ sa1110_term(struct uart_bas *bas) static void sa1110_putc(struct uart_bas *bas, int c) { - while (!uart_getreg(bas, SACOM_SR1) & SR1_TNF); + while (!(uart_getreg(bas, SACOM_SR1) & SR1_TNF)); uart_setreg(bas, SACOM_DR, c); } @@ -186,7 +186,7 @@ sa1110_bus_transmit(struct uart_softc *sc) uart_setreg(&sc->sc_bas, SACOM_CR3, uart_getreg(&sc->sc_bas, SACOM_CR3) | CR3_TIE); for (i = 0; i < sc->sc_txdatasz; i++) { - while (!uart_getreg(&sc->sc_bas, SACOM_SR1) & SR1_TNF); + while (!(uart_getreg(&sc->sc_bas, SACOM_SR1) & SR1_TNF)); uart_setreg(&sc->sc_bas, SACOM_DR, sc->sc_txbuf[i]); uart_barrier(&sc->sc_bas); |
