Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 213e25ba authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: dwc3: gadget: Replace dev with its parent sysdev in ep_disable"

parents 12280a38 22ab398e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -964,13 +964,13 @@ static int dwc3_gadget_ep_disable(struct usb_ep *ep)
					dep->name))
		return 0;

	pm_runtime_get_sync(dwc->dev);
	pm_runtime_get_sync(dwc->sysdev);
	spin_lock_irqsave(&dwc->lock, flags);
	ret = __dwc3_gadget_ep_disable(dep);
	dbg_event(dep->number, "DISABLE", ret);
	spin_unlock_irqrestore(&dwc->lock, flags);
	pm_runtime_mark_last_busy(dwc->dev);
	pm_runtime_put_sync_autosuspend(dwc->dev);
	pm_runtime_mark_last_busy(dwc->sysdev);
	pm_runtime_put_sync_autosuspend(dwc->sysdev);

	return ret;
}