diff options
| author | Andrew Thompson <thompsa@FreeBSD.org> | 2010-04-29 22:48:19 +0000 | 
|---|---|---|
| committer | Andrew Thompson <thompsa@FreeBSD.org> | 2010-04-29 22:48:19 +0000 | 
| commit | c955f3622916421fc5daf7ef3f4fe4fe86c940b7 (patch) | |
| tree | 49c790c43cbb80168cde2e5dff0173a1f8c28cf1 /sys/dev/usb/usb_dev.c | |
| parent | ccd296dfa6bf38cbe042c222593ba93c2ef8961b (diff) | |
Notes
Diffstat (limited to 'sys/dev/usb/usb_dev.c')
| -rw-r--r-- | sys/dev/usb/usb_dev.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/usb_dev.c b/sys/dev/usb/usb_dev.c index dffabad29b9f..a696a2652be0 100644 --- a/sys/dev/usb/usb_dev.c +++ b/sys/dev/usb/usb_dev.c @@ -284,7 +284,7 @@ error:  		usbd_enum_unlock(cpd->udev);  		if (--(cpd->udev->refcount) == 0) { -			cv_signal(cpd->udev->default_cv + 1); +			cv_signal(&cpd->udev->ref_cv);  		}  	}  	mtx_unlock(&usb_ref_lock); @@ -352,7 +352,7 @@ usb_unref_device(struct usb_cdev_privdata *cpd,  	}  	if (crd->is_uref) {  		if (--(cpd->udev->refcount) == 0) { -			cv_signal(cpd->udev->default_cv + 1); +			cv_signal(&cpd->udev->ref_cv);  		}  		crd->is_uref = 0;  	} @@ -500,7 +500,7 @@ usb_fifo_create(struct usb_cdev_privdata *cpd,  		/* update some fields */  		f->fifo_index = n + USB_FIFO_TX;  		f->dev_ep_index = e; -		f->priv_mtx = udev->default_mtx; +		f->priv_mtx = &udev->device_mtx;  		f->priv_sc0 = ep;  		f->methods = &usb_ugen_methods;  		f->iface_index = ep->iface_index; @@ -527,7 +527,7 @@ usb_fifo_create(struct usb_cdev_privdata *cpd,  		/* update some fields */  		f->fifo_index = n + USB_FIFO_RX;  		f->dev_ep_index = e; -		f->priv_mtx = udev->default_mtx; +		f->priv_mtx = &udev->device_mtx;  		f->priv_sc0 = ep;  		f->methods = &usb_ugen_methods;  		f->iface_index = ep->iface_index;  | 
