diff options
author | ed <ed@FreeBSD.org> | 2008-08-02 08:01:56 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2008-08-02 08:01:56 +0000 |
commit | 274fe7a6fc81c4fa13310ab0ad4de8886776482c (patch) | |
tree | 2976a3483e52bfaac229775bddcacbdd479999df /sys/arm | |
parent | 7fd1c3c3d8b8ba3035d0593d40ae6b6c4a4dcd87 (diff) | |
download | FreeBSD-src-274fe7a6fc81c4fa13310ab0ad4de8886776482c.zip FreeBSD-src-274fe7a6fc81c4fa13310ab0ad4de8886776482c.tar.gz |
Make the at91 uart(4) driver compile again.
As of r178766 this driver didn't compile anymore, because it missed a
switch()-statement. I'm getting tired of seeing this driver being broken
for two months already. When I run `make universe', everything passes,
except the BWCT kernel configuration file.
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/at91/uart_dev_at91usart.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/sys/arm/at91/uart_dev_at91usart.c b/sys/arm/at91/uart_dev_at91usart.c index 8a7644f..794178d 100644 --- a/sys/arm/at91/uart_dev_at91usart.c +++ b/sys/arm/at91/uart_dev_at91usart.c @@ -510,15 +510,18 @@ at91_rx_put(struct uart_softc *sc, int key) if (sc->sc_sysdev != NULL && sc->sc_sysdev->type == UART_DEV_CONSOLE) { if ((kdb_brk = kdb_alt_break(key, &sc->sc_altbrk)) != 0) { - case KDB_REQ_DEBUGGER: - kdb_enter(KDB_WHY_BREAK, "Break sequence on console"); - break; - case KDB_REQ_PANIC: - kdb_panic("Panic sequence on console"); - break; - case KDB_REQ_REBOOT: - kdb_reboot(); - break; + switch (kdb_brk) { + case KDB_REQ_DEBUGGER: + kdb_enter(KDB_WHY_BREAK, + "Break sequence on console"); + break; + case KDB_REQ_PANIC: + kdb_panic("Panic sequence on console"); + break; + case KDB_REQ_REBOOT: + kdb_reboot(); + break; + } } } #endif |