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 14:43:49 -0700 |
commit | bc96c0ad1ed0c938fefc0423aa99f086c5a2a1ea (patch) | |
tree | 8283e540734b08d537dedf044f28c65a5ae64d63 /drivers/usb/gadget/dummy_hcd.c | |
parent | 2532178a68b5ce4e421d50ea1b1dcc0a1359f19d (diff) | |
download | linux-bc96c0ad1ed0c938fefc0423aa99f086c5a2a1ea.tar.gz linux-bc96c0ad1ed0c938fefc0423aa99f086c5a2a1ea.tar.bz2 linux-bc96c0ad1ed0c938fefc0423aa99f086c5a2a1ea.zip |
[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) 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; |