net: usb: asix: make use of mdiobus_get_phy and phy_connect_direct

In most cases we use own mdio bus, there is no need to create and store
string for the PHY address.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Oleksij Rempel
2022-03-11 09:50:13 +01:00
committed by David S. Miller
parent 5436fb3fd4
commit d5f3c81c56
2 changed files with 9 additions and 9 deletions

View File

@@ -184,7 +184,6 @@ struct asix_common_private {
struct mii_bus *mdio;
struct phy_device *phydev;
u16 phy_addr;
char phy_name[20];
bool embd_phy;
u8 chipcode;
};