Add missing ifdefs for usb power saving support.

Submitted by:	Hans Petter Selasky
This commit is contained in:
Andrew Thompson 2010-05-12 22:51:45 +00:00
parent 5fdb3a67ac
commit e727a16cf1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208013

View File

@ -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
}
/*------------------------------------------------------------------------*