From 591db7639fd7e2b2ae3f82851ee1d25beac714c4 Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Fri, 27 Oct 2006 17:12:56 +0300 Subject: [PATCH] musb_hdrc: Trivial DMA fixes after recent update Trivial DMA fixes after recent update Signed-off-by: Tony Lindgren --- drivers/usb/musb/musb_gadget.c | 2 +- drivers/usb/musb/plat_uds.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index 9456608d5ca..81581694814 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c @@ -128,7 +128,7 @@ __acquires(ep->musb->Lock) : DMA_FROM_DEVICE); req->request.dma = DMA_ADDR_INVALID; req->mapped = 0; - } else + } else if (req->request.dma != DMA_ADDR_INVALID) dma_sync_single_for_cpu(musb->controller, req->request.dma, req->request.length, diff --git a/drivers/usb/musb/plat_uds.c b/drivers/usb/musb/plat_uds.c index 4d5cf148c70..31a513531fe 100644 --- a/drivers/usb/musb/plat_uds.c +++ b/drivers/usb/musb/plat_uds.c @@ -1857,6 +1857,7 @@ static int __devinit musb_probe(struct platform_device *pdev) static int __devexit musb_remove(struct platform_device *pdev) { + struct device *dev = &pdev->dev; struct musb *musb = dev_to_musb(&pdev->dev); void __iomem *ctrl_base = musb->ctrl_base; -- 2.41.1