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:

commit de
David S. Miller

pai
0d5704bf4e
commit
65752dda4b
@@ -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;
|
||||
|
Referência em uma nova issue
Block a user