gianfar: pass the proper dev to DMA ops
We need to be passing the of_platform device struct into the DMA ops as its the one that has the archdata setup to know which low-level DMA ops we should be using (not the net_device one). This isn't an issue until we expect the archdata to be setup correctly. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
4b704d59d6
commit
4826857f1b
@@ -738,7 +738,8 @@ struct gfar_private {
|
||||
spinlock_t rxlock;
|
||||
|
||||
struct device_node *node;
|
||||
struct net_device *dev;
|
||||
struct net_device *ndev;
|
||||
struct of_device *ofdev;
|
||||
struct napi_struct napi;
|
||||
|
||||
/* skb array and index */
|
||||
|
Reference in New Issue
Block a user