diff options
author | Christoph Hellwig <hch@lst.de> | 2019-02-11 14:20:02 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-12 18:09:23 +0100 |
commit | 5dac33ad6f0d1dbc20736fa13d833250e7f12a26 (patch) | |
tree | 564272738ce1dde33d3c00176a69687bf0ce6138 /drivers/net/ethernet/moxa/moxart_ether.h | |
parent | pxa168_eth: pass struct device to DMA API functions (diff) | |
download | linux-5dac33ad6f0d1dbc20736fa13d833250e7f12a26.tar.xz linux-5dac33ad6f0d1dbc20736fa13d833250e7f12a26.zip |
moxart_ether: pass struct device to DMA API functions
The DMA API generally relies on a struct device to work properly, and
only barely works without one for legacy reasons. Pass the easily
available struct device from the platform_device to remedy this.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/moxa/moxart_ether.h')
-rw-r--r-- | drivers/net/ethernet/moxa/moxart_ether.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/moxa/moxart_ether.h b/drivers/net/ethernet/moxa/moxart_ether.h index bee608b547d1..bf4c3029cd0c 100644 --- a/drivers/net/ethernet/moxa/moxart_ether.h +++ b/drivers/net/ethernet/moxa/moxart_ether.h @@ -292,6 +292,7 @@ #define LINK_STATUS 0x4 struct moxart_mac_priv_t { + struct platform_device *pdev; void __iomem *base; unsigned int reg_maccr; unsigned int reg_imr; |