diff options
author | Madalin Bucur <madalin.bucur@nxp.com> | 2017-06-19 18:04:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-20 13:46:53 -0400 |
commit | 5567e989198b5a8d78f9b5868e48fc9f4726bdd5 (patch) | |
tree | d6f6831e464340a02e3dc4ed718ed59190be4562 /drivers/net/ethernet/freescale/fman | |
parent | fe420d87bbc234015b4195dd239b7d3052b140ea (diff) | |
download | linux-5567e989198b5a8d78f9b5868e48fc9f4726bdd5.tar.bz2 |
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 'drivers/net/ethernet/freescale/fman')
-rw-r--r-- | drivers/net/ethernet/freescale/fman/mac.c | 2 |
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; |