From: Dinh Nguyen <dingu...@altera.com>

Initialize the spinlock here as the original spinlock in the host driver
has been removed.

Signed-off-by: Dinh Nguyen <dingu...@altera.com>
---
 drivers/usb/dwc2/pci.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/dwc2/pci.c b/drivers/usb/dwc2/pci.c
index c291fca..faacac9 100644
--- a/drivers/usb/dwc2/pci.c
+++ b/drivers/usb/dwc2/pci.c
@@ -148,6 +148,7 @@ static int dwc2_driver_probe(struct pci_dev *dev,
        }
 
        pci_set_drvdata(dev, hsotg);
+       spin_lock_init(&hsotg->lock);
 
        return retval;
 }
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to