]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/usb/host/ohci-pxa27x.c
Merge remote-tracking branch 'net-next/master'
[karo-tx-linux.git] / drivers / usb / host / ohci-pxa27x.c
index 74696ae29aa6981d26aaa79020765471b6bf8ee4..b64949bc43e2ebacc1620a76faf6d9db2935b16e 100644 (file)
@@ -296,9 +296,7 @@ static int ohci_pxa_of_init(struct platform_device *pdev)
         * Since shared usb code relies on it, set it here for now.
         * Once we have dma capability bindings this can go away.
         */
-       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)
                return ret;