]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ethernet: hix5hd2: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sat, 25 Jun 2016 14:55:12 +0000 (16:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2016 13:12:35 +0000 (09:12 -0400)
commit6f96608ec7948475c28e3f2264a38058d28c4141
tree36de4085b9f8ece42e06586fce633046db6fe801
parent644afe2355198bf213e40f21308a9e7b8e86f216
net: ethernet: hix5hd2: 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/hisilicon/hix5hd2_gmac.c