diff options
author | Jon Mason <jon.mason@broadcom.com> | 2016-07-08 01:08:54 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-10 00:10:40 +0200 |
commit | a0b68486f6f680c7c0352a47c60042d7d95ffd87 (patch) | |
tree | 9c84f920d37864276ef2dd073c60be78b3f067d8 /drivers/net/ethernet/broadcom/bgmac.h | |
parent | net: ethernet: bgmac: change bgmac_* prints to dev_* prints (diff) | |
download | linux-a0b68486f6f680c7c0352a47c60042d7d95ffd87.tar.xz linux-a0b68486f6f680c7c0352a47c60042d7d95ffd87.zip |
net: ethernet: bgmac: add dma_dev pointer
The dma buffer allocation, etc references a dma_dev device pointer from
the bcma core. In anticipation of removing the bcma requirement for
this driver, these must be changed to not reference that struct. Add a
dma_dev device pointer to the bgmac stuct and reference that instead.
Signed-off-by: Jon Mason <jon.mason@broadcom.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bgmac.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bgmac.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bgmac.h b/drivers/net/ethernet/broadcom/bgmac.h index abb9dd854180..fd20018aa8c8 100644 --- a/drivers/net/ethernet/broadcom/bgmac.h +++ b/drivers/net/ethernet/broadcom/bgmac.h @@ -429,6 +429,7 @@ struct bgmac { struct bcma_device *cmn; /* Reference to CMN core for BCM4706 */ struct device *dev; + struct device *dma_dev; struct net_device *net_dev; struct napi_struct napi; struct mii_bus *mii_bus; |