Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1fd7341 authored by Russell King's avatar Russell King
Browse files

DMA-API: usb: use new dma_coerce_mask_and_coherent()

parent 22d9d8e8
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -121,9 +121,7 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)


	pdata.phy = data->phy;
	pdata.phy = data->phy;


	if (!pdev->dev.dma_mask)
	ret = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
		pdev->dev.dma_mask = &pdev->dev.coherent_dma_mask;
	ret = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32));
	if (ret)
	if (ret)
		goto err_clk;
		goto err_clk;


+1 −3
Original line number Original line Diff line number Diff line
@@ -119,9 +119,7 @@ static int dwc3_exynos_probe(struct platform_device *pdev)
	 * Since shared usb code relies on it, set it here for now.
	 * Since shared usb code relies on it, set it here for now.
	 * Once we move to full device tree support this will vanish off.
	 * Once we move to full device tree support this will vanish off.
	 */
	 */
	if (!dev->dma_mask)
	ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(32));
		dev->dma_mask = &dev->coherent_dma_mask;
	ret = dma_set_coherent_mask(dev, DMA_BIT_MASK(32));
	if (ret)
	if (ret)
		goto err1;
		goto err1;


+1 −3
Original line number Original line Diff line number Diff line
@@ -90,9 +90,7 @@ static int ehci_atmel_drv_probe(struct platform_device *pdev)
	 * Since shared usb code relies on it, set it here for now.
	 * Since shared usb code relies on it, set it here for now.
	 * Once we have dma capability bindings this can go away.
	 * Once we have dma capability bindings this can go away.
	 */
	 */
	if (!pdev->dev.dma_mask)
	retval = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
		pdev->dev.dma_mask = &pdev->dev.coherent_dma_mask;
	retval = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32));
	if (retval)
	if (retval)
		goto fail_create_hcd;
		goto fail_create_hcd;


+1 −3
Original line number Original line Diff line number Diff line
@@ -144,9 +144,7 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
	 * Since shared usb code relies on it, set it here for now.
	 * Since shared usb code relies on it, set it here for now.
	 * Once we have dma capability bindings this can go away.
	 * Once we have dma capability bindings this can go away.
	 */
	 */
	if (!dev->dma_mask)
	ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(32));
		dev->dma_mask = &dev->coherent_dma_mask;
	ret = dma_set_coherent_mask(dev, DMA_BIT_MASK(32));
	if (ret)
	if (ret)
		return ret;
		return ret;


+1 −3
Original line number Original line Diff line number Diff line
@@ -180,9 +180,7 @@ static int ehci_orion_drv_probe(struct platform_device *pdev)
	 * set. Since shared usb code relies on it, set it here for
	 * set. Since shared usb code relies on it, set it here for
	 * now. Once we have dma capability bindings this can go away.
	 * now. Once we have dma capability bindings this can go away.
	 */
	 */
	if (!pdev->dev.dma_mask)
	err = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
		pdev->dev.dma_mask = &pdev->dev.coherent_dma_mask;
	err = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32));
	if (err)
	if (err)
		goto err1;
		goto err1;


Loading