mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-21 13:24:15 +08:00
fsl/fman: remove unnecessary set_dma_ops() call and HAS_DMA dependency
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>
This commit is contained in:
parent
40a94f7a6b
commit
c2b72e8e10
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user