net: dsa: sja1105: unregister the MDIO buses during teardown
The call to sja1105_mdiobus_unregister is present in the error path but
absent from the main driver unbind path.
Fixes: 5a8f09748e
("net: dsa: sja1105: register the MDIO buses for 100base-T1 and 100base-TX")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
86704993e6
commit
700fa08da4
@ -3187,6 +3187,7 @@ static void sja1105_teardown(struct dsa_switch *ds)
|
|||||||
}
|
}
|
||||||
|
|
||||||
sja1105_devlink_teardown(ds);
|
sja1105_devlink_teardown(ds);
|
||||||
|
sja1105_mdiobus_unregister(ds);
|
||||||
sja1105_flower_teardown(ds);
|
sja1105_flower_teardown(ds);
|
||||||
sja1105_tas_teardown(ds);
|
sja1105_tas_teardown(ds);
|
||||||
sja1105_ptp_clock_unregister(ds);
|
sja1105_ptp_clock_unregister(ds);
|
||||||
|
Loading…
Reference in New Issue
Block a user