net: ethernet: nb8800: 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> Acked-by: Mans Rullgard <mans@mansr.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
bd081e4b02
commit
46bb0bb094
@@ -284,7 +284,6 @@ struct nb8800_priv {
|
||||
|
||||
struct mii_bus *mii_bus;
|
||||
struct device_node *phy_node;
|
||||
struct phy_device *phydev;
|
||||
|
||||
/* PHY connection type from DT */
|
||||
int phy_mode;
|
||||
|
Reference in New Issue
Block a user