diff options
| author | Bill Paul <wpaul@FreeBSD.org> | 2000-12-04 22:46:50 +0000 |
|---|---|---|
| committer | Bill Paul <wpaul@FreeBSD.org> | 2000-12-04 22:46:50 +0000 |
| commit | 031fc810abd6b2e6e7ca1c5dca1e30b0816a0558 (patch) | |
| tree | 666e0b4d2fded5ac285854eee39002f92f92a93a /sys/dev/vr/if_vr.c | |
| parent | b884490bc006964586812376b22661a7c18fa136 (diff) | |
Notes
Diffstat (limited to 'sys/dev/vr/if_vr.c')
| -rw-r--r-- | sys/dev/vr/if_vr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c index 38677fd95e04..a1fa0c0d9dea 100644 --- a/sys/dev/vr/if_vr.c +++ b/sys/dev/vr/if_vr.c @@ -643,6 +643,9 @@ static int vr_attach(dev) unit = device_get_unit(dev); bzero(sc, sizeof(struct vr_softc *)); + mtx_init(&sc->vr_mtx, device_get_nameunit(dev), MTX_DEF); + VR_LOCK(sc); + /* * Handle power management nonsense. */ @@ -728,8 +731,6 @@ static int vr_attach(dev) goto fail; } - mtx_init(&sc->vr_mtx, device_get_nameunit(dev), MTX_DEF); - VR_LOCK(sc); /* Reset the adapter. */ vr_reset(sc); |
