diff options
Diffstat (limited to 'sys/pci/if_rl.c')
-rw-r--r-- | sys/pci/if_rl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c index 7fb1415..f8b3606 100644 --- a/sys/pci/if_rl.c +++ b/sys/pci/if_rl.c @@ -802,6 +802,9 @@ static int rl_attach(dev) unit = device_get_unit(dev); bzero(sc, sizeof(struct rl_softc)); + mtx_init(&sc->rl_mtx, device_get_nameunit(dev), MTX_DEF); + RL_LOCK(sc); + /* * Handle power management nonsense. */ @@ -899,9 +902,6 @@ static int rl_attach(dev) callout_handle_init(&sc->rl_stat_ch); - mtx_init(&sc->rl_mtx, device_get_nameunit(dev), MTX_DEF); - RL_LOCK(sc); - /* Reset the adapter. */ rl_reset(sc); sc->rl_eecmd_read = RL_EECMD_READ_6BIT; |