linux-sg2042/drivers/net/dsa
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
..
b53 net: dsa: b53: Support prepended Broadcom tags 2017-11-13 10:34:54 +09:00
microchip net: dsa: Pass a port to get_tag_protocol() 2017-11-13 10:34:54 +09:00
mv88e6xxx net: dsa: mv88e6xxx: Unregister MDIO bus on error path 2017-12-07 13:53:05 -05:00
Kconfig dsa: add DSA switch driver for Microchip KSZ9477 2017-05-31 20:56:31 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bcm_sf2.c drivers: net: dsa: remove duplicate includes 2017-12-06 15:45:22 -05:00
bcm_sf2.h net: dsa: bcm_sf2: Add support for IPv6 CFP rules 2017-10-23 03:06:47 +01:00
bcm_sf2_cfp.c net: dsa: bcm_sf2: Set correct CHAIN_ID and slice number mask 2017-11-30 14:21:35 -05:00
bcm_sf2_regs.h net: dsa: bcm_sf2: Allow matching arbitrary IPv4 mask lengths 2017-10-23 03:06:47 +01:00
dsa_loop.c net: dsa: Pass a port to get_tag_protocol() 2017-11-13 10:34:54 +09:00
dsa_loop.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dsa_loop_bdinfo.c net: dsa: Mock-up driver 2017-04-01 12:39:32 -07:00
lan9303-core.c net: dsa: lan9303: correctly check return value of devm_gpiod_get_optional 2017-11-14 21:34:57 +09:00
lan9303.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-11-04 09:26:51 +09:00
lan9303_i2c.c net: dsa: lan9303: Adjust indenting 2017-11-08 13:29:06 +09:00
lan9303_mdio.c net: dsa: lan9303: Adjust indenting 2017-11-08 13:29:06 +09:00
mt7530.c net: dsa: Pass a port to get_tag_protocol() 2017-11-13 10:34:54 +09:00
mt7530.h net: dsa: mediatek: add adjust link support for user ports 2017-08-08 18:01:25 -07:00
mv88e6060.c net: dsa: Pass a port to get_tag_protocol() 2017-11-13 10:34:54 +09:00
mv88e6060.h net: dsa: Keep the mii bus and address in the private structure 2016-04-13 18:15:23 -04:00
qca8k.c net: dsa: Pass a port to get_tag_protocol() 2017-11-13 10:34:54 +09:00
qca8k.h net: dsa: call phy_init_eee in DSA layer 2017-08-01 20:09:10 -07:00