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

Commit 41970727 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dwc3-msm: Use dwc->sysdev instead of dwc->dev with DMA APIs"

parents 6f8421c3 0e4c4433
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1853,7 +1853,7 @@ static void dwc3_msm_notify_event(struct dwc3 *dwc, unsigned int event)
				break;
			evt->dwc	= dwc;
			evt->length	= DWC3_EVENT_BUFFERS_SIZE;
			evt->buf	= dma_alloc_coherent(dwc->dev,
			evt->buf	= dma_alloc_coherent(dwc->sysdev,
						DWC3_EVENT_BUFFERS_SIZE,
						&evt->dma, GFP_KERNEL);
			if (!evt->buf) {
@@ -1924,7 +1924,7 @@ static void dwc3_msm_notify_event(struct dwc3 *dwc, unsigned int event)
		for (i = 0; i < mdwc->num_gsi_event_buffers; i++) {
			evt = mdwc->gsi_ev_buff[i];
			if (evt)
				dma_free_coherent(dwc->dev, evt->length,
				dma_free_coherent(dwc->sysdev, evt->length,
							evt->buf, evt->dma);
		}
		break;