From 8e0abe4cc479954f239d4623eb511af27738df8c Mon Sep 17 00:00:00 2001 From: wpaul Date: Fri, 13 Oct 2000 18:35:49 +0000 Subject: Use device_get_nameunit(dev) as the mutex string when calling mtx_init() instead of hard-coded string constant. Also remember to do the mutex changes to the ste driver, which I forgot in the first commit. --- sys/dev/dc/if_dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/dc/if_dc.c') diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c index f7c97a1..38475ab 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); -- cgit v1.1