/* Call this is you want to be sure all an anchor's URBs have finished  */
int usb_wait_anchor_empty_timeout(struct usb_anchor *anchor, unsigned int timeout)
/* Call this is you want to be sure all an anchor's URBs have finished  */
int usb_wait_anchor_empty_timeout(struct usb_anchor *anchor, unsigned int timeout)
{
	return wait_event_timeout(anchor->wait, list_empty(&anchor->urb_list),
				  msecs_to_jiffies(timeout));
}