fsl/fman: remove unnecessary set_dma_ops() call and HAS_DMA dependency
authorMadalin Bucur <madalin.bucur@nxp.com>
Fri, 23 Mar 2018 14:52:25 +0000 (09:52 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2018 15:30:06 +0000 (11:30 -0400)
The platform device is no longer used for DMA mapping so the
(questionable) setting of the DMA ops done here is no longer
needed. Removing it together with the HAS_DMA dependency that
it required.

Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/Kconfig
drivers/net/ethernet/freescale/fman/mac.c

index 8870a9a798ca4e0245e6b05ac8d4ee2cf8499b46..dc0850b3b517b9b02e3cd9a42cf98425a55d0df3 100644 (file)
@@ -2,7 +2,6 @@ config FSL_FMAN
        tristate "FMan support"
        depends on FSL_SOC || ARCH_LAYERSCAPE || COMPILE_TEST
        select GENERIC_ALLOCATOR
-       depends on HAS_DMA
        select PHYLIB
        default n
        help
index 4829dcd9e0771f2bcea84f8b2148f8fe11a30500..7b5b95f52c098535942f625001847a2ea26dbeb3 100644 (file)
@@ -567,7 +567,6 @@ static struct platform_device *dpaa_eth_add_device(int fman_id,
        }
 
        pdev->dev.parent = priv->dev;
-       set_dma_ops(&pdev->dev, get_dma_ops(priv->dev));
 
        ret = platform_device_add_data(pdev, &data, sizeof(data));
        if (ret)