summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_device.c
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2010-11-19 01:49:22 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2010-11-19 01:49:22 +0000
commit4ae0e0dcaf25041c79c832ce84cf35e1a075e580 (patch)
treeaa08a3a43755c37f3164798054959d55b81a23d7 /sys/dev/usb/usb_device.c
parent8dfd0c64ca5a2a62d6e875b07f8ea5c160bbbf40 (diff)
Notes
Diffstat (limited to 'sys/dev/usb/usb_device.c')
-rw-r--r--sys/dev/usb/usb_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_device.c b/sys/dev/usb/usb_device.c
index 62f59b8632ff..41ed16bc2827 100644
--- a/sys/dev/usb/usb_device.c
+++ b/sys/dev/usb/usb_device.c
@@ -1524,7 +1524,7 @@ usb_alloc_device(device_t parent_dev, struct usb_bus *bus,
* of USB devices out there that do not work very well with
* automatic suspend and resume!
*/
- udev->power_mode = USB_POWER_MODE_ON;
+ udev->power_mode = usbd_filter_power_mode(udev, USB_POWER_MODE_ON);
udev->pwr_save.last_xfer_time = ticks;
/* we are not ready yet */
udev->refcount = 1;