mirror of https://gitee.com/openkylin/linux.git
3126aeec53
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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
chip.c | ||
chip.h | ||
global1.c | ||
global1.h | ||
global1_atu.c | ||
global1_vtu.c | ||
global2.c | ||
global2.h | ||
phy.c | ||
phy.h | ||
port.c | ||
port.h | ||
serdes.c | ||
serdes.h |