Commit 591db763 authored by Tony Lindgren's avatar Tony Lindgren

musb_hdrc: Trivial DMA fixes after recent update

Trivial DMA fixes after recent update
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent f583a29e
......@@ -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,
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment