]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/usb/chipidea/ci_hdrc_imx.c
DMA-API: usb: use new dma_coerce_mask_and_coherent()
[karo-tx-linux.git] / drivers / usb / chipidea / ci_hdrc_imx.c
index bf33bd3e27b166095ad2ee4ccdae6769a7f2bd0e..af731dbda1e6594976d918f4b6c74c07c11c72ce 100644 (file)
@@ -121,9 +121,7 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
 
        pdata.phy = data->phy;
 
-       if (!pdev->dev.dma_mask)
-               pdev->dev.dma_mask = &pdev->dev.coherent_dma_mask;
-       ret = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32));
+       ret = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
        if (ret)
                goto err_clk;