diff options
author | thompsa <thompsa@FreeBSD.org> | 2010-05-17 23:48:03 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2010-05-17 23:48:03 +0000 |
commit | 226ff1fb8db68bf2f07886e627fb7842093d46e7 (patch) | |
tree | fff8336a9f604a0139d0d8ed297c0df200431151 /sys | |
parent | 1fbcafcbc95b676065342b7afa234b21f4da1611 (diff) | |
download | FreeBSD-src-226ff1fb8db68bf2f07886e627fb7842093d46e7.zip FreeBSD-src-226ff1fb8db68bf2f07886e627fb7842093d46e7.tar.gz |
MFC r208013
Add missing ifdefs for usb power saving support.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/controller/usb_controller.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/usb_controller.c b/sys/dev/usb/controller/usb_controller.c index e91904c..1a9b474 100644 --- a/sys/dev/usb/controller/usb_controller.c +++ b/sys/dev/usb/controller/usb_controller.c @@ -234,11 +234,12 @@ usb_bus_explore(struct usb_proc_msg *pm) USB_BUS_UNLOCK(bus); +#if USB_HAVE_POWERD /* * First update the USB power state! */ usb_bus_powerd(bus); - +#endif /* Explore the Root USB HUB. */ (udev->hub->explore) (udev); USB_BUS_LOCK(bus); @@ -301,11 +302,13 @@ usb_power_wdog(void *arg) usb_proc_rewakeup(&bus->explore_proc); /* recover from DDB */ #endif +#if USB_HAVE_POWERD USB_BUS_UNLOCK(bus); usb_bus_power_update(bus); USB_BUS_LOCK(bus); +#endif } /*------------------------------------------------------------------------* |