net: ethernet: renesas: ravb: 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_dev 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: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
f290040dc5
commit
0f635171e3
@@ -1011,7 +1011,6 @@ struct ravb_private {
|
||||
struct work_struct work;
|
||||
/* MII transceiver section. */
|
||||
struct mii_bus *mii_bus; /* MDIO bus control */
|
||||
struct phy_device *phydev; /* PHY device control */
|
||||
int link;
|
||||
phy_interface_t phy_interface;
|
||||
int msg_enable;
|
||||
|
Reference in New Issue
Block a user