android_kernel_oneplus_msm8998/drivers/net/ethernet/stmicro/stmmac
Chen-Yu Tsai d856c16d8a stmmac: dwmac-sunxi: Call exit cleanup function in probe error path
dwmac-sunxi has 2 callbacks that were called from stmmac_platform as
part of the probe and remove sequences.

Ater the conversion of dwmac-sunxi into a standalone platform driver,
the .init function is called before calling into the stmmac driver
core, but .exit is not called to clean up if stmmac returns an error.

This patch fixes the probe error path. This properly cleans up and
releases resources when the driver core fails to probe.

Cc: Joachim Eastwood <manabian@gmail.com>
Fixes: 9a9e9a1ede ("stmmac: dwmac-sunxi: turn setup callback into a
		      probe function")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-12-14 16:11:59 -05:00
..
chain_mode.c
common.h
descs.h
descs_com.h
dwmac-generic.c
dwmac-ipq806x.c stmmac: avoid ipq806x constant overflow warning 2015-11-12 16:11:49 -05:00
dwmac-lpc18xx.c
dwmac-meson.c
dwmac-rk.c net: stmmac: fix double-initialization of phy_iface 2015-11-05 14:09:26 -05:00
dwmac-socfpga.c
dwmac-sti.c stmmac: dwmac-sti: fix st,tx-retime-src check 2015-11-30 14:52:51 -05:00
dwmac-sunxi.c stmmac: dwmac-sunxi: Call exit cleanup function in probe error path 2015-12-14 16:11:59 -05:00
dwmac100.h
dwmac100_core.c
dwmac100_dma.c
dwmac1000.h
dwmac1000_core.c
dwmac1000_dma.c
dwmac_dma.h
dwmac_lib.c
enh_desc.c
Kconfig
Makefile
mmc.h
mmc_core.c
norm_desc.c
ring_mode.c
stmmac.h
stmmac_ethtool.c
stmmac_hwtstamp.c
stmmac_main.c stmmac: fix resource management when resume 2015-12-05 17:49:11 -05:00
stmmac_mdio.c stmmac: fix PHY reset during resume 2015-11-30 14:52:51 -05:00
stmmac_pci.c
stmmac_platform.c
stmmac_platform.h
stmmac_ptp.c
stmmac_ptp.h