dpaa_eth: change device used

Change device used for DMA mapping to the MAC device that is an
of_device, with proper DMA ops. Using this device for the netdevice
should also address the issue with DSA scenarios that need the
netdevice to be backed by an of_device.

Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Madalin Bucur
2017-10-16 21:36:07 +03:00
committed by David S. Miller
parent 3c38ec6786
commit c6e26ea8c8
3 changed files with 27 additions and 53 deletions

View File

@@ -83,7 +83,6 @@ struct mac_device {
};
struct dpaa_eth_data {
struct device_node *mac_node;
struct mac_device *mac_dev;
int mac_hw_id;
int fman_hw_id;