]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: ethernet: bcmgenet: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sun, 3 Jul 2016 15:33:56 +0000 (17:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jul 2016 23:02:45 +0000 (16:02 -0700)
commit62469c76007e11428e2ee3c6de90cbe74b588d44
tree0c80db86c8f08034d56a39869ea512ed89280ba2
parent4694e6e3f40c2ece234b65f0cda776c5590c0618
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>
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/genet/bcmgenet.h
drivers/net/ethernet/broadcom/genet/bcmmii.c