summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2010-05-12 22:51:45 +0000
committerthompsa <thompsa@FreeBSD.org>2010-05-12 22:51:45 +0000
commit5b1f59777ff38a2144887982bb28bae23a4561e7 (patch)
tree94b73a3654130e1582bb5c23e16144c8f04fc004 /sys/dev
parentf7f314b3e7a78435075395909cd58f38173acbcf (diff)
downloadFreeBSD-src-5b1f59777ff38a2144887982bb28bae23a4561e7.zip
FreeBSD-src-5b1f59777ff38a2144887982bb28bae23a4561e7.tar.gz
Add missing ifdefs for usb power saving support.
Submitted by: Hans Petter Selasky
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/controller/usb_controller.c5
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
}
/*------------------------------------------------------------------------*
OpenPOWER on IntegriCloud