diff options
author | imp <imp@FreeBSD.org> | 2014-03-08 03:39:15 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2014-03-08 03:39:15 +0000 |
commit | f689df1f1f9716326f914c25900bdbb5792391c0 (patch) | |
tree | 304d71556997a2ab4106b8bdcc29ab13d3dec633 /sys/dev/uart/uart_core.c | |
parent | 8c1e434d15fc3f729bae3355816d43e6af8b3f9e (diff) | |
download | FreeBSD-src-f689df1f1f9716326f914c25900bdbb5792391c0.zip FreeBSD-src-f689df1f1f9716326f914c25900bdbb5792391c0.tar.gz |
Set the baud rate if it isn't 0 (meaning it has been specified) not
only if it is 0 (meaning that it hasn't been specified and is likely
to turn off the UART's transmitter).
Diffstat (limited to 'sys/dev/uart/uart_core.c')
-rw-r--r-- | sys/dev/uart/uart_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/uart/uart_core.c b/sys/dev/uart/uart_core.c index eea2d8c..1ab1dae 100644 --- a/sys/dev/uart/uart_core.c +++ b/sys/dev/uart/uart_core.c @@ -473,7 +473,7 @@ uart_bus_attach(device_t dev) } if (sc->sc_sysdev != NULL) { - if (sc->sc_sysdev->baudrate == 0) { + if (sc->sc_sysdev->baudrate != 0) { if (UART_IOCTL(sc, UART_IOCTL_BAUD, (intptr_t)&sc->sc_sysdev->baudrate) != 0) sc->sc_sysdev->baudrate = -1; |