net: dsa: sja1105: unregister the MDIO buses during teardown
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 11 Aug 2021 11:59:45 +0000 (14:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Aug 2021 09:53:40 +0000 (10:53 +0100)
commit700fa08da43edb0af3e6a513f0255443e96088e8
tree21eaee99e728ab794be2b419ab98deb66b7f866c
parent86704993e6a5989e256b4212ca03115cc2694eda
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: 5a8f09748ee7 ("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>
drivers/net/dsa/sja1105/sja1105_main.c