|
@@ -451,7 +451,6 @@ static ssize_t dwc3_mode_write(struct file *file,
|
|
|
|
|
|
spin_lock_irqsave(&dwc->lock, flags);
|
|
|
reg = dwc3_readl(dwc->regs, DWC3_GCTL);
|
|
|
- spin_unlock_irqrestore(&dwc->lock, flags);
|
|
|
|
|
|
reg &= ~(DWC3_GCTL_PRTCAPDIR(DWC3_GCTL_PRTCAP_OTG));
|
|
|
|
|
@@ -464,7 +463,6 @@ static ssize_t dwc3_mode_write(struct file *file,
|
|
|
if (!strncmp(buf, "otg", 3))
|
|
|
reg |= DWC3_GCTL_PRTCAP(DWC3_GCTL_PRTCAP_OTG);
|
|
|
|
|
|
- spin_lock_irqsave(&dwc->lock, flags);
|
|
|
dwc3_writel(dwc->regs, DWC3_GCTL, reg);
|
|
|
spin_unlock_irqrestore(&dwc->lock, flags);
|
|
|
|