diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2005-04-25 11:21:31 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-27 17:43:49 -0400 |
commit | bc96c0ad1ed0c938fefc0423aa99f086c5a2a1ea (patch) | |
tree | 8283e540734b08d537dedf044f28c65a5ae64d63 /drivers/usb/gadget/dummy_hcd.c | |
parent | 2532178a68b5ce4e421d50ea1b1dcc0a1359f19d (diff) |
[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>
Diffstat (limited to 'drivers/usb/gadget/dummy_hcd.c')
-rw-r--r-- | drivers/usb/gadget/dummy_hcd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c index c039d2fbe7ab..9d37fc771b27 100644 --- a/drivers/usb/gadget/dummy_hcd.c +++ b/drivers/usb/gadget/dummy_hcd.c | |||
@@ -1646,6 +1646,9 @@ static int dummy_start (struct usb_hcd *hcd) | |||
1646 | if (!root) | 1646 | if (!root) |
1647 | return -ENOMEM; | 1647 | return -ENOMEM; |
1648 | 1648 | ||
1649 | /* only show a low-power port: just 8mA */ | ||
1650 | hcd->power_budget = 8; | ||
1651 | |||
1649 | /* root hub enters addressed state... */ | 1652 | /* root hub enters addressed state... */ |
1650 | hcd->state = HC_STATE_RUNNING; | 1653 | hcd->state = HC_STATE_RUNNING; |
1651 | root->speed = USB_SPEED_HIGH; | 1654 | root->speed = USB_SPEED_HIGH; |
@@ -1655,9 +1658,6 @@ static int dummy_start (struct usb_hcd *hcd) | |||
1655 | goto err1; | 1658 | goto err1; |
1656 | } | 1659 | } |
1657 | 1660 | ||
1658 | /* only show a low-power port: just 8mA */ | ||
1659 | hub_set_power_budget (root, 8); | ||
1660 | |||
1661 | if ((retval = dummy_register_udc (dum)) != 0) | 1661 | if ((retval = dummy_register_udc (dum)) != 0) |
1662 | goto err2; | 1662 | goto err2; |
1663 | 1663 | ||