summaryrefslogtreecommitdiffstats
path: root/sys/dev/ti
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2000-10-13 18:35:49 +0000
committerwpaul <wpaul@FreeBSD.org>2000-10-13 18:35:49 +0000
commit8e0abe4cc479954f239d4623eb511af27738df8c (patch)
treefff6a7e2bdedaad22a27ef128d69bb1169c24bfb /sys/dev/ti
parent9ddccb55057ef3b64d80b6d90cb2b25b56238ba3 (diff)
downloadFreeBSD-src-8e0abe4cc479954f239d4623eb511af27738df8c.zip
FreeBSD-src-8e0abe4cc479954f239d4623eb511af27738df8c.tar.gz
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.
Diffstat (limited to 'sys/dev/ti')
-rw-r--r--sys/dev/ti/if_ti.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c
index 04ec29d..1afd6ed 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;
OpenPOWER on IntegriCloud