summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale/fman/mac.c
diff options
context:
space:
mode:
authorMadalin Bucur <madalin.bucur@nxp.com>2017-06-19 17:04:16 +0200
committerDavid S. Miller <davem@davemloft.net>2017-06-20 19:46:53 +0200
commit5567e989198b5a8d78f9b5868e48fc9f4726bdd5 (patch)
treed6f6831e464340a02e3dc4ed718ed59190be4562 /drivers/net/ethernet/freescale/fman/mac.c
parentnet/core: remove explicit do_softirq() from busy_poll_stop() (diff)
downloadlinux-5567e989198b5a8d78f9b5868e48fc9f4726bdd5.tar.xz
linux-5567e989198b5a8d78f9b5868e48fc9f4726bdd5.zip
fsl/fman: propagate dma_ops
Make sure dma_ops are set, to be later used by the Ethernet driver. Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/freescale/fman/mac.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/fman/mac.c b/drivers/net/ethernet/freescale/fman/mac.c
index 0b31f8502ada..6e67d22fd0d5 100644
--- a/drivers/net/ethernet/freescale/fman/mac.c
+++ b/drivers/net/ethernet/freescale/fman/mac.c
@@ -623,6 +623,8 @@ static struct platform_device *dpaa_eth_add_device(int fman_id,
goto no_mem;
}
+ set_dma_ops(&pdev->dev, get_dma_ops(priv->dev));
+
ret = platform_device_add_data(pdev, &data, sizeof(data));
if (ret)
goto err;