diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2020-09-01 21:20:08 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2020-09-01 21:20:08 +0000 |
commit | b64b31338f702c25d4542248b1a2ee2420d4dae8 (patch) | |
tree | 7ee1de163745cff412128d2cadc137126d820606 /sys/powerpc/pseries/phyp_console.c | |
parent | ed83a56181ae1994e038e75b086e4a193e8419e5 (diff) | |
download | src-b64b31338f702c25d4542248b1a2ee2420d4dae8.tar.gz src-b64b31338f702c25d4542248b1a2ee2420d4dae8.zip |
Notes
Diffstat (limited to 'sys/powerpc/pseries/phyp_console.c')
-rw-r--r-- | sys/powerpc/pseries/phyp_console.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/powerpc/pseries/phyp_console.c b/sys/powerpc/pseries/phyp_console.c index f6e5c6f3c10d..7f678e761b0b 100644 --- a/sys/powerpc/pseries/phyp_console.c +++ b/sys/powerpc/pseries/phyp_console.c @@ -108,7 +108,7 @@ static driver_t uart_phyp_driver = { uart_phyp_methods, sizeof(struct uart_phyp_softc), }; - + DRIVER_MODULE(uart_phyp, vdevice, uart_phyp_driver, uart_devclass, 0, 0); static cn_probe_t uart_phyp_cnprobe; @@ -222,7 +222,7 @@ uart_phyp_cnprobe(struct consdev *cp) cp->cn_pri = CN_NORMAL; console_sc = ≻ return; - + fail: cp->cn_pri = CN_DEAD; return; @@ -431,7 +431,7 @@ uart_phyp_ttyoutwakeup(struct tty *tp) int len; sc = tty_softc(tp); - + while ((len = ttydisc_getc(tp, buffer, sizeof(buffer))) != 0) uart_phyp_put(sc, buffer, len); } @@ -453,4 +453,3 @@ uart_phyp_intr(void *v) if (sc->irqres == NULL) callout_reset(&sc->callout, sc->polltime, uart_phyp_intr, sc); } - |