mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 22:42:10 +00:00
phy: Add an mdio_device structure
Not all devices attached to an MDIO bus are phys. So add an mdio_device structure to represent the generic parts of an mdio device, and place this structure into the phy_device. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e7f4dc3536
commit
e5a03bfd87
35 changed files with 165 additions and 151 deletions
|
@ -439,7 +439,7 @@ static void dsa_switch_destroy(struct dsa_switch *ds)
|
|||
if (of_phy_is_fixed_link(port_dn)) {
|
||||
phydev = of_phy_find_device(port_dn);
|
||||
if (phydev) {
|
||||
int addr = phydev->addr;
|
||||
int addr = phydev->mdio.addr;
|
||||
|
||||
phy_device_free(phydev);
|
||||
of_node_put(port_dn);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue