diff options
| author | Warner Losh <imp@FreeBSD.org> | 2021-12-10 00:04:45 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2021-12-10 00:04:45 +0000 |
| commit | c6df6f5322f7004c71216391e1c0b374d853704a (patch) | |
| tree | 76dc82f3e59048e11fc12a9f5985627e8f12b24d /sys/dev/bhnd | |
| parent | ab639f2398bf7efd4dfd38cd6527e22f6e781ae9 (diff) | |
Diffstat (limited to 'sys/dev/bhnd')
| -rw-r--r-- | sys/dev/bhnd/cores/chipc/chipc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/bhnd/cores/chipc/chipc.c b/sys/dev/bhnd/cores/chipc/chipc.c index 314f214d08b1..72d92ba682bc 100644 --- a/sys/dev/bhnd/cores/chipc/chipc.c +++ b/sys/dev/bhnd/cores/chipc/chipc.c @@ -1145,13 +1145,13 @@ chipc_should_enable_muxed_sprom(struct chipc_softc *sc) if (!CHIPC_QUIRK(sc, MUX_SPROM)) return (true); - mtx_lock(&Giant); /* for newbus */ + bus_topo_lock(); parent = device_get_parent(sc->dev); hostb = bhnd_bus_find_hostb_device(parent); if ((error = device_get_children(parent, &devs, &devcount))) { - mtx_unlock(&Giant); + bus_topo_unlock(); return (false); } @@ -1174,7 +1174,7 @@ chipc_should_enable_muxed_sprom(struct chipc_softc *sc) } free(devs, M_TEMP); - mtx_unlock(&Giant); + bus_topo_unlock(); return (result); } |
