summaryrefslogtreecommitdiff
path: root/sys/dev/sf
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>2000-12-04 22:46:50 +0000
committerBill Paul <wpaul@FreeBSD.org>2000-12-04 22:46:50 +0000
commit031fc810abd6b2e6e7ca1c5dca1e30b0816a0558 (patch)
tree666e0b4d2fded5ac285854eee39002f92f92a93a /sys/dev/sf
parentb884490bc006964586812376b22661a7c18fa136 (diff)
Notes
Diffstat (limited to 'sys/dev/sf')
-rw-r--r--sys/dev/sf/if_sf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c
index f2ca1e8bd922..aa33e7d96fcd 100644
--- a/sys/dev/sf/if_sf.c
+++ b/sys/dev/sf/if_sf.c
@@ -679,6 +679,8 @@ static int sf_attach(dev)
unit = device_get_unit(dev);
bzero(sc, sizeof(struct sf_softc));
+ mtx_init(&sc->sf_mtx, device_get_nameunit(dev), MTX_DEF);
+ SF_LOCK(sc);
/*
* Handle power management nonsense.
*/
@@ -765,8 +767,6 @@ static int sf_attach(dev)
}
callout_handle_init(&sc->sf_stat_ch);
- mtx_init(&sc->sf_mtx, device_get_nameunit(dev), MTX_DEF);
- SF_LOCK(sc);
/* Reset the adapter. */
sf_reset(sc);