]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: stmmac: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Mon, 3 Oct 2016 06:28:19 +0000 (08:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Oct 2016 05:40:25 +0000 (01:40 -0400)
commitd6d50c7ea42d3659782695bfebf4ae6548d00db5
tree38a1c43baf41aac0cc61e2e462f6eeee0cd23114
parenta54e1612bc3dd4a3974b69a6043dd4ddbab14e6d
net: stmmac: 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
phydev 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/stmicro/stmmac/dwmac-socfpga.c
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c