summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb2/controller/ohci2_pci.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2008-12-23 17:36:25 +0000
committerthompsa <thompsa@FreeBSD.org>2008-12-23 17:36:25 +0000
commit13c65f56b568c751181cdac11f5ce30b619f2d86 (patch)
tree1fb5fdf2b581886d2880dd6351e469f46b260ca4 /sys/dev/usb2/controller/ohci2_pci.c
parent291c79e84c43ec0141da734347f9140c80b6a933 (diff)
downloadFreeBSD-src-13c65f56b568c751181cdac11f5ce30b619f2d86.zip
FreeBSD-src-13c65f56b568c751181cdac11f5ce30b619f2d86.tar.gz
Name the bus mutex by the controller name, this allows each bus to be
distinguished in lock profiling, etc.
Diffstat (limited to 'sys/dev/usb2/controller/ohci2_pci.c')
-rw-r--r--sys/dev/usb2/controller/ohci2_pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/usb2/controller/ohci2_pci.c b/sys/dev/usb2/controller/ohci2_pci.c
index fe84e9c..990c849 100644
--- a/sys/dev/usb2/controller/ohci2_pci.c
+++ b/sys/dev/usb2/controller/ohci2_pci.c
@@ -202,6 +202,7 @@ ohci_pci_attach(device_t self)
}
/* get all DMA memory */
+ sc->sc_bus.parent = self;
if (usb2_bus_mem_alloc_all(&sc->sc_bus, USB_GET_DMA_TAG(self),
&ohci_iterate_hw_softc)) {
return ENOMEM;
OpenPOWER on IntegriCloud