diff options
Diffstat (limited to 'sys/pci/if_xl.c')
-rw-r--r-- | sys/pci/if_xl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c index cfe67b6..eaa8901 100644 --- a/sys/pci/if_xl.c +++ b/sys/pci/if_xl.c @@ -1239,6 +1239,9 @@ static int xl_attach(dev) sc = device_get_softc(dev); unit = device_get_unit(dev); + mtx_init(&sc->xl_mtx, device_get_nameunit(dev), MTX_DEF); + XL_LOCK(sc); + sc->xl_flags = 0; if (pci_get_device(dev) == TC_DEVICEID_HURRICANE_556 || pci_get_device(dev) == TC_DEVICEID_HURRICANE_556B) @@ -1382,9 +1385,6 @@ static int xl_attach(dev) goto fail; } - mtx_init(&sc->xl_mtx, device_get_nameunit(dev), MTX_DEF); - XL_LOCK(sc); - /* Reset the adapter. */ xl_reset(sc); |