diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2017-01-31 19:37:55 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-31 19:44:49 +0100 |
commit | aa8863e5d49417094b9457a0d53e8505e95a1863 (patch) | |
tree | fb3c7647afb5ea4e07fe7307b535444c2188f861 /drivers/net/ethernet/broadcom/bgmac.h | |
parent | net: bgmac: allocate struct bgmac just once & don't copy it (diff) | |
download | linux-aa8863e5d49417094b9457a0d53e8505e95a1863.tar.xz linux-aa8863e5d49417094b9457a0d53e8505e95a1863.zip |
net: bgmac: drop struct bcma_mdio we don't need anymore
Adding struct bcma_mdio was a workaround for bcma code not having access
to the struct bgmac used in the core code. Now we don't duplicate this
struct we can just use it internally in bcma code.
This simplifies code & allows access to all bgmac driver details from
all places in bcma code.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bgmac.h b/drivers/net/ethernet/broadcom/bgmac.h index dfebaded3b52..ab2db76e4fb8 100644 --- a/drivers/net/ethernet/broadcom/bgmac.h +++ b/drivers/net/ethernet/broadcom/bgmac.h @@ -523,7 +523,7 @@ void bgmac_enet_remove(struct bgmac *bgmac); void bgmac_adjust_link(struct net_device *net_dev); int bgmac_phy_connect_direct(struct bgmac *bgmac); -struct mii_bus *bcma_mdio_mii_register(struct bcma_device *core, u8 phyaddr); +struct mii_bus *bcma_mdio_mii_register(struct bgmac *bgmac); void bcma_mdio_mii_unregister(struct mii_bus *mii_bus); static inline u32 bgmac_read(struct bgmac *bgmac, u16 offset) |