usb: musb: ux500: copy dma mask from platform device to musb device
authorMian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Tue, 15 Mar 2011 15:24:29 +0000 (16:24 +0100)
committerFelipe Balbi <balbi@ti.com>
Wed, 13 Apr 2011 08:50:57 +0000 (11:50 +0300)
musb code checks dma mask before calling dma hooks.

Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/ux500.c

index d6384e4aeef96ba77448fa048cbc6560a4d2353d..f7e04bf34a13a86f7439b2033b255137f10d039b 100644 (file)
@@ -93,6 +93,8 @@ static int __init ux500_probe(struct platform_device *pdev)
        }
 
        musb->dev.parent                = &pdev->dev;
        }
 
        musb->dev.parent                = &pdev->dev;
+       musb->dev.dma_mask              = pdev->dev.dma_mask;
+       musb->dev.coherent_dma_mask     = pdev->dev.coherent_dma_mask;
 
        glue->dev                       = &pdev->dev;
        glue->musb                      = musb;
 
        glue->dev                       = &pdev->dev;
        glue->musb                      = musb;