summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_hub.c
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2009-06-07 19:41:11 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2009-06-07 19:41:11 +0000
commitae60fdfba263901c34490262054e1dd39878b8f8 (patch)
treec74029825164c1a63bb75e5f673438c24b743f22 /sys/dev/usb/usb_hub.c
parent0a2e596a936e3841a8fd0f59940ee1f74777b404 (diff)
downloadsrc-test2-ae60fdfba263901c34490262054e1dd39878b8f8.tar.gz
src-test2-ae60fdfba263901c34490262054e1dd39878b8f8.zip
Notes
Diffstat (limited to 'sys/dev/usb/usb_hub.c')
-rw-r--r--sys/dev/usb/usb_hub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_hub.c b/sys/dev/usb/usb_hub.c
index f07b9ec4260c..595e7cdc6173 100644
--- a/sys/dev/usb/usb_hub.c
+++ b/sys/dev/usb/usb_hub.c
@@ -1494,7 +1494,7 @@ usb2_transfer_power_ref(struct usb_xfer *xfer, int val)
}
USB_BUS_LOCK(udev->bus);
- xfer_type = xfer->pipe->edesc->bmAttributes & UE_XFERTYPE;
+ xfer_type = xfer->endpoint->edesc->bmAttributes & UE_XFERTYPE;
udev->pwr_save.last_xfer_time = ticks;
udev->pwr_save.type_refs[xfer_type] += val;