OpenCloudOS-Kernel/drivers/net/dsa/mv88e6xxx
Andrew Lunn 3126aeec53 net: dsa: mv88e6xxx: Unregister MDIO bus on error path
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: a3c53be55c ("net: dsa: mv88e6xxx: Support multiple MDIO busses")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-07 13:53:05 -05:00
..
Kconfig net: dsa: mv88e6xxx: Select IRQ_DOMAIN 2016-11-18 13:54:22 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
chip.c net: dsa: mv88e6xxx: Unregister MDIO bus on error path 2017-12-07 13:53:05 -05:00
chip.h net: dsa: mv88e6xxx: remove EEE support 2017-08-01 20:09:10 -07:00
global1.c net: dsa: mv88e6xxx: Fix stats histogram mode 2017-11-11 19:34:33 +09:00
global1.h net: dsa: mv88e6xxx: Fix stats histogram mode 2017-11-11 19:34:33 +09:00
global1_atu.c net: dsa: mv88e6xxx: prefix Global ATU macros 2017-06-15 14:07:48 -04:00
global1_vtu.c net: dsa: mv88e6xxx: prefix Global VTU macros 2017-06-15 14:07:49 -04:00
global2.c net: dsa: mv88e6xxx: make irq_chip const 2017-08-20 20:02:29 -07:00
global2.h net: dsa: mv88e6xxx: add a global2_addr info flag 2017-07-18 11:10:58 -07:00
phy.c treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
phy.h net: dsa: mv88e6xxx: remove EEE support 2017-08-01 20:09:10 -07:00
port.c net: dsa: mv88e6xxx: remove EEE support 2017-08-01 20:09:10 -07:00
port.h net: dsa: mv88e6xxx: remove EEE support 2017-08-01 20:09:10 -07:00
serdes.c net: dsa: mv88e6xxx: fix error code in mv88e6390_serdes_power() 2017-06-25 11:42:33 -04:00
serdes.h net: dsa: mv88e6xxx: rename chip header 2017-06-04 20:07:40 -04:00