Commit fb52728a authored by Madalin Bucur's avatar Madalin Bucur Committed by David S. Miller

dpaa_eth: reuse the dma_ops provided by the FMan MAC device

Remove the use of arch_setup_dma_ops() that was not exported
and was breaking loadable module compilation.
Signed-off-by: default avatarMadalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5567e989
...@@ -2647,7 +2647,7 @@ static int dpaa_eth_probe(struct platform_device *pdev) ...@@ -2647,7 +2647,7 @@ static int dpaa_eth_probe(struct platform_device *pdev)
priv->buf_layout[TX].priv_data_size = DPAA_TX_PRIV_DATA_SIZE; /* Tx */ priv->buf_layout[TX].priv_data_size = DPAA_TX_PRIV_DATA_SIZE; /* Tx */
/* device used for DMA mapping */ /* device used for DMA mapping */
arch_setup_dma_ops(dev, 0, 0, NULL, false); set_dma_ops(dev, get_dma_ops(&pdev->dev));
err = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(40)); err = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(40));
if (err) { if (err) {
dev_err(dev, "dma_coerce_mask_and_coherent() failed\n"); dev_err(dev, "dma_coerce_mask_and_coherent() failed\n");
......
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