diff options
Diffstat (limited to 'drivers/usb/gadget/dummy_hcd.c')
-rw-r--r-- | drivers/usb/gadget/dummy_hcd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c index fcb5526cb085..9040b50d6425 100644 --- a/drivers/usb/gadget/dummy_hcd.c +++ b/drivers/usb/gadget/dummy_hcd.c | |||
@@ -1784,8 +1784,7 @@ static int dummy_bus_resume (struct usb_hcd *hcd) | |||
1784 | 1784 | ||
1785 | spin_lock_irq (&dum->lock); | 1785 | spin_lock_irq (&dum->lock); |
1786 | if (!test_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags)) { | 1786 | if (!test_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags)) { |
1787 | dev_warn (&hcd->self.root_hub->dev, "HC isn't running!\n"); | 1787 | rc = -ESHUTDOWN; |
1788 | rc = -ENODEV; | ||
1789 | } else { | 1788 | } else { |
1790 | dum->rh_state = DUMMY_RH_RUNNING; | 1789 | dum->rh_state = DUMMY_RH_RUNNING; |
1791 | set_link_state (dum); | 1790 | set_link_state (dum); |