summaryrefslogtreecommitdiff
path: root/sys/dev/dt
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2021-10-25 19:51:13 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2021-10-25 19:51:13 +0000
commitdda2670f1e9def0681dfa506b1089aec71655bdb (patch)
treeddae6c6d496b429d87ddd841dddfeaaaf365dea7 /sys/dev/dt
parentdee66d9c5cb19a8654e0099086abeb31a4ca9cb5 (diff)
remove dtp_mtx which protected dtp_ref; the code is always called with KERNEL_LOCK() held
Diffstat (limited to 'sys/dev/dt')
-rw-r--r--sys/dev/dt/dt_dev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/dt/dt_dev.c b/sys/dev/dt/dt_dev.c
index 7c781df0d0f..fac53552f8f 100644
--- a/sys/dev/dt/dt_dev.c
+++ b/sys/dev/dt/dt_dev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dt_dev.c,v 1.15 2021/09/03 16:45:45 jasper Exp $ */
+/* $OpenBSD: dt_dev.c,v 1.16 2021/10/25 19:51:12 millert Exp $ */
/*
* Copyright (c) 2019 Martin Pieuchot <mpi@openbsd.org>
@@ -530,8 +530,6 @@ dt_dev_alloc_probe(const char *func, const char *name, struct dt_provider *dtpv)
dtp->dtp_sysnum = -1;
dtp->dtp_ref = 0;
- mtx_init(&dtp->dtp_mtx, IPL_HIGH);
-
return dtp;
}