diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2009-03-18 23:28:22 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-18 23:28:22 -0700 |
commit | 4826857f1bf07f9c0f1495e9b05d125552c88a85 (patch) | |
tree | 247387255d4dc1939e88fb640da7cd9ebbae8a73 /drivers/net/gianfar.h | |
parent | 4b704d59d6fb152bcd0883b84af5936a29067f12 (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.h | 3 |
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 { 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 */ |