Andrew Lunn <[email protected]> writes: > The MDIO busses need to be unregistered before they are freed, > otherwise BUG() is called. Add a call to the unregister code if the > registration fails, since we can have multiple busses, of which some > may correctly register before one fails. This requires moving the code > around a little. > > Fixes: a3c53be55c95 ("net: dsa: mv88e6xxx: Support multiple MDIO busses") > Signed-off-by: Andrew Lunn <[email protected]>
Reviewed-by: Vivien Didelot <[email protected]>
