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/pci/if_wb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/pci/if_wb.c') diff --git a/sys/pci/if_wb.c b/sys/pci/if_wb.c index 55316e3..8fe210c 100644 --- a/sys/pci/if_wb.c +++ b/sys/pci/if_wb.c @@ -907,7 +907,7 @@ static int wb_attach(dev) /* Save the cache line size. */ sc->wb_cachesize = pci_read_config(dev, WB_PCI_CACHELEN, 4) & 0xFF; - mtx_init(&sc->wb_mtx, "wb", MTX_DEF); + mtx_init(&sc->wb_mtx, device_get_nameunit(dev), MTX_DEF); WB_LOCK(sc); /* Reset the adapter. */ -- cgit v1.1