net: ethernet: greth: 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>
Esse commit está contido em:
Philippe Reynes
2016-07-30 16:22:05 +02:00
commit de David S. Miller
commit 65752dda4b
2 arquivos alterados com 11 adições e 13 exclusões

Ver arquivo

@@ -123,7 +123,6 @@ struct greth_private {
struct napi_struct napi;
spinlock_t devlock;
struct phy_device *phy;
struct mii_bus *mdio;
unsigned int link;
unsigned int speed;