net: ethernet: bcmgenet: use phydev from struct net_device
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phy in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by:Philippe Reynes <tremyfr@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/broadcom/genet/bcmgenet.c 20 additions, 25 deletionsdrivers/net/ethernet/broadcom/genet/bcmgenet.c
- drivers/net/ethernet/broadcom/genet/bcmgenet.h 0 additions, 1 deletiondrivers/net/ethernet/broadcom/genet/bcmgenet.h
- drivers/net/ethernet/broadcom/genet/bcmmii.c 11 additions, 13 deletionsdrivers/net/ethernet/broadcom/genet/bcmmii.c
Loading
Please register or sign in to comment