alarm-tegra-x1 / reference/switchroot-mainline/0026-v0-usb-udc-tegra_xudc-use-dma_alloc_coherent.patch

raw file 843 bytes
From 89071be55e2884bbe1ce6db99b95efa6a3676817 Mon Sep 17 00:00:00 2001
From: Billy Laws <[email protected]>
Date: Sun, 10 Mar 2019 11:32:38 +0000
Subject: [PATCH] usb: udc: tegra_xudc: use dma_alloc_coherent

---
 drivers/usb/gadget/udc/tegra_xudc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/gadget/udc/tegra_xudc.c b/drivers/usb/gadget/udc/tegra_xudc.c
index 126c18e5ed1f..811619e9a6e8 100644
--- a/drivers/usb/gadget/udc/tegra_xudc.c
+++ b/drivers/usb/gadget/udc/tegra_xudc.c
@@ -2988,7 +2988,7 @@ static int tegra_xudc_alloc_eps(struct tegra_xudc *xudc)
 	int err;
 
 	xudc->ep_context =
-		dma_zalloc_coherent(xudc->dev, XUDC_NR_EPS *
+		dma_alloc_coherent(xudc->dev, XUDC_NR_EPS *
 				    sizeof(*xudc->ep_context),
 				    &xudc->ep_context_phys, GFP_KERNEL);
 	if (!xudc->ep_context)
-- 
2.20.1