aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/uart/uart_core.c
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2003-09-17 01:41:21 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2003-09-17 01:41:21 +0000
commit06287620b4f768f18a0874557b1cfa70e35791df (patch)
tree976d5fcb92d42c5763ac054fcd83a3a3ba593d98 /sys/dev/uart/uart_core.c
parent6ab09ca79bf6727d6e0a146211c3ed18c7195d0f (diff)
Notes
Diffstat (limited to 'sys/dev/uart/uart_core.c')
-rw-r--r--sys/dev/uart/uart_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/uart/uart_core.c b/sys/dev/uart/uart_core.c
index 883bea299683d..dd4f91cd4a125 100644
--- a/sys/dev/uart/uart_core.c
+++ b/sys/dev/uart/uart_core.c
@@ -309,6 +309,8 @@ uart_bus_attach(device_t dev)
*/
sc->sc_leaving = 1;
+ mtx_init(&sc->sc_hwmtx, "uart_hwmtx", NULL, MTX_SPIN);
+
/*
* Re-allocate. We expect that the softc contains the information
* collected by uart_bus_probe() intact.