]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: ethernet: lantiq_etop: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sat, 2 Jul 2016 22:05:04 +0000 (00:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jul 2016 22:59:51 +0000 (15:59 -0700)
commitd1e3a356f569adefde26c8f5d514cd108617bcff
tree61c15ee90b225a1972edc7b265409adf8caa8549
parentf4400ded03b46a8288d6d5ca4bfb6bb29dbcbb94
net: ethernet: lantiq_etop: 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/lantiq_etop.c