]> git.baikalelectronics.ru Git - kernel.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)
commite77e362c2fdcea4363862828e7d8ea564102c835
tree38a1c43baf41aac0cc61e2e462f6eeee0cd23114
parentfa00dc334672e1fda3771c685596d261199b42d5
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