aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/gianfar.h
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2009-03-19 02:28:22 -0400
committerDavid S. Miller <davem@davemloft.net>2009-03-19 02:28:22 -0400
commit4826857f1bf07f9c0f1495e9b05d125552c88a85 (patch)
tree247387255d4dc1939e88fb640da7cd9ebbae8a73 /drivers/net/gianfar.h
parent4b704d59d6fb152bcd0883b84af5936a29067f12 (diff)
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>
Diffstat (limited to 'drivers/net/gianfar.h')
-rw-r--r--drivers/net/gianfar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h
index 54332b0059df..dd499d7cde26 100644
--- a/drivers/net/gianfar.h
+++ b/drivers/net/gianfar.h
@@ -738,7 +738,8 @@ struct gfar_private {
738 spinlock_t rxlock; 738 spinlock_t rxlock;
739 739
740 struct device_node *node; 740 struct device_node *node;
741 struct net_device *dev; 741 struct net_device *ndev;
742 struct of_device *ofdev;
742 struct napi_struct napi; 743 struct napi_struct napi;
743 744
744 /* skb array and index */ 745 /* skb array and index */