diff options
Diffstat (limited to 'drivers/usb/host/xhci.c')
-rw-r--r-- | drivers/usb/host/xhci.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index d48edfa5043a..b2c56d15fb42 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
@@ -512,9 +512,10 @@ void xhci_stop(struct usb_hcd *hcd) | |||
512 | spin_lock_irq(&xhci->lock); | 512 | spin_lock_irq(&xhci->lock); |
513 | xhci_halt(xhci); | 513 | xhci_halt(xhci); |
514 | xhci_reset(xhci); | 514 | xhci_reset(xhci); |
515 | xhci_cleanup_msix(xhci); | ||
516 | spin_unlock_irq(&xhci->lock); | 515 | spin_unlock_irq(&xhci->lock); |
517 | 516 | ||
517 | xhci_cleanup_msix(xhci); | ||
518 | |||
518 | #ifdef CONFIG_USB_XHCI_HCD_DEBUGGING | 519 | #ifdef CONFIG_USB_XHCI_HCD_DEBUGGING |
519 | /* Tell the event ring poll function not to reschedule */ | 520 | /* Tell the event ring poll function not to reschedule */ |
520 | xhci->zombie = 1; | 521 | xhci->zombie = 1; |
@@ -548,9 +549,10 @@ void xhci_shutdown(struct usb_hcd *hcd) | |||
548 | 549 | ||
549 | spin_lock_irq(&xhci->lock); | 550 | spin_lock_irq(&xhci->lock); |
550 | xhci_halt(xhci); | 551 | xhci_halt(xhci); |
551 | xhci_cleanup_msix(xhci); | ||
552 | spin_unlock_irq(&xhci->lock); | 552 | spin_unlock_irq(&xhci->lock); |
553 | 553 | ||
554 | xhci_cleanup_msix(xhci); | ||
555 | |||
554 | xhci_dbg(xhci, "xhci_shutdown completed - status = %x\n", | 556 | xhci_dbg(xhci, "xhci_shutdown completed - status = %x\n", |
555 | xhci_readl(xhci, &xhci->op_regs->status)); | 557 | xhci_readl(xhci, &xhci->op_regs->status)); |
556 | } | 558 | } |