diff options
| author | Bill Paul <wpaul@FreeBSD.org> | 2000-10-13 18:35:49 +0000 |
|---|---|---|
| committer | Bill Paul <wpaul@FreeBSD.org> | 2000-10-13 18:35:49 +0000 |
| commit | 1e856a7b34a5e77102e75c02d9ece7099965821b (patch) | |
| tree | 046a96700b4fb4dab6007dad20bbfeabf74a7e99 /sys/dev | |
| parent | 36fa62c01b42c3c645a3721afd4ccf2102ac758e (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/dc/if_dc.c | 2 | ||||
| -rw-r--r-- | sys/dev/sf/if_sf.c | 2 | ||||
| -rw-r--r-- | sys/dev/sk/if_sk.c | 2 | ||||
| -rw-r--r-- | sys/dev/ti/if_ti.c | 2 | ||||
| -rw-r--r-- | sys/dev/vr/if_vr.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c index f7c97a1bf240..38475ab51a83 100644 --- a/sys/dev/dc/if_dc.c +++ b/sys/dev/dc/if_dc.c @@ -1699,7 +1699,7 @@ static int dc_attach(dev) goto fail; } - mtx_init(&sc->dc_mtx, "dc", MTX_DEF); + mtx_init(&sc->dc_mtx, device_get_nameunit(dev), MTX_DEF); DC_LOCK(sc); /* Need this info to decide on a chip type. */ sc->dc_info = dc_devtype(dev); diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c index a7d14522004e..eac7980e9a8f 100644 --- a/sys/dev/sf/if_sf.c +++ b/sys/dev/sf/if_sf.c @@ -766,7 +766,7 @@ static int sf_attach(dev) } callout_handle_init(&sc->sf_stat_ch); - mtx_init(&sc->sf_mtx, "sf", MTX_DEF); + mtx_init(&sc->sf_mtx, device_get_nameunit(dev), MTX_DEF); SF_LOCK(sc); /* Reset the adapter. */ sf_reset(sc); diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c index 963f754672b4..b1f0bfd43ab3 100644 --- a/sys/dev/sk/if_sk.c +++ b/sys/dev/sk/if_sk.c @@ -1277,7 +1277,7 @@ static int sk_attach(dev) goto fail; } - mtx_init(&sc->sk_mtx, "skc", MTX_DEF); + mtx_init(&sc->sk_mtx, device_get_nameunit(dev), MTX_DEF); SK_LOCK(sc); /* Reset the adapter. */ sk_reset(sc); diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index 04ec29d99f65..1afd6ed6d699 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -1537,7 +1537,7 @@ static int ti_attach(dev) goto fail; } - mtx_init(&sc->ti_mtx, "ti", MTX_DEF); + mtx_init(&sc->ti_mtx, device_get_nameunit(dev), MTX_DEF); TI_LOCK(sc); sc->ti_unit = unit; diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c index 10b994232659..7430a8c20aa5 100644 --- a/sys/dev/vr/if_vr.c +++ b/sys/dev/vr/if_vr.c @@ -729,7 +729,7 @@ static int vr_attach(dev) goto fail; } - mtx_init(&sc->vr_mtx, "vr", MTX_DEF); + mtx_init(&sc->vr_mtx, device_get_nameunit(dev), MTX_DEF); VR_LOCK(sc); /* Reset the adapter. */ vr_reset(sc); |
