[PATCH] ohci-omap, sl811, dummy: remove hub_set_power_budget

This patch changes the HCDs that used the old hub_set_power_budget call,
making them use the new hcd->power_budget field instead.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Alan Stern
2005-04-25 11:21:31 -04:00
committed by Greg Kroah-Hartman
parent 2532178a68
commit bc96c0ad1e
5 changed files with 8 additions and 12 deletions

View File

@@ -1646,6 +1646,9 @@ static int dummy_start (struct usb_hcd *hcd)
if (!root)
return -ENOMEM;
/* only show a low-power port: just 8mA */
hcd->power_budget = 8;
/* root hub enters addressed state... */
hcd->state = HC_STATE_RUNNING;
root->speed = USB_SPEED_HIGH;
@@ -1655,9 +1658,6 @@ static int dummy_start (struct usb_hcd *hcd)
goto err1;
}
/* only show a low-power port: just 8mA */
hub_set_power_budget (root, 8);
if ((retval = dummy_register_udc (dum)) != 0)
goto err2;