aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/dummy_hcd.c6
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