aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/gadget/langwell_udc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/gadget/langwell_udc.c b/drivers/usb/gadget/langwell_udc.c
index 064306046702..b8ec954c0692 100644
--- a/drivers/usb/gadget/langwell_udc.c
+++ b/drivers/usb/gadget/langwell_udc.c
@@ -3391,6 +3391,11 @@ static int langwell_udc_suspend(struct pci_dev *pdev, pm_message_t state)
3391 /* save PCI state */ 3391 /* save PCI state */
3392 pci_save_state(pdev); 3392 pci_save_state(pdev);
3393 3393
3394 spin_lock_irq(&dev->lock);
3395 /* stop all usb activities */
3396 stop_activity(dev, dev->driver);
3397 spin_unlock_irq(&dev->lock);
3398
3394 /* free dTD dma_pool and dQH */ 3399 /* free dTD dma_pool and dQH */
3395 if (dev->dtd_pool) 3400 if (dev->dtd_pool)
3396 dma_pool_destroy(dev->dtd_pool); 3401 dma_pool_destroy(dev->dtd_pool);