Andrew Lunn <and...@lunn.ch> 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 <and...@lunn.ch>

Reviewed-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>

Reply via email to