Skip to content

Commit

Permalink
net: dsa: sja1105: unregister the MDIO buses during teardown
Browse files Browse the repository at this point in the history
The call to sja1105_mdiobus_unregister is present in the error path but
absent from the main driver unbind path.

Fixes: 5a8f097 ("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>
  • Loading branch information
Vladimir Oltean authored and David S. Miller committed Aug 12, 2021
1 parent 8670499 commit 700fa08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/dsa/sja1105/sja1105_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3187,6 +3187,7 @@ static void sja1105_teardown(struct dsa_switch *ds)
}

sja1105_devlink_teardown(ds);
sja1105_mdiobus_unregister(ds);
sja1105_flower_teardown(ds);
sja1105_tas_teardown(ds);
sja1105_ptp_clock_unregister(ds);
Expand Down

0 comments on commit 700fa08

Please sign in to comment.