]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
fsl/fman: propagate dma_ops
authorMadalin Bucur <madalin.bucur@nxp.com>
Mon, 19 Jun 2017 15:04:16 +0000 (18:04 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jun 2017 17:46:53 +0000 (13:46 -0400)
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>
drivers/net/ethernet/freescale/fman/mac.c

index 0b31f8502adae2e86c292fb99437ee943c0794bf..6e67d22fd0d54f69e5ee3358717e7ed539fad952 100644 (file)
@@ -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;