]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: dwmac-sun8i: Use the correct function in exit path
authorCorentin Labbe <clabbe@baylibre.com>
Sun, 10 Nov 2019 11:30:48 +0000 (11:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Nov 2019 22:43:41 +0000 (14:43 -0800)
commite5291251a8b91e5bb3f5bd0c1be3c1854176855a
treeaaca436b9b9d0b41e38e7ba4027f6a22d217a896
parent68301ddabc17a05049251eec1c7c5aa8e16b5aa3
net: ethernet: dwmac-sun8i: Use the correct function in exit path

When PHY is not powered, the probe function fail and some resource are
still unallocated.
Furthermore some BUG happens:
dwmac-sun8i 5020000.ethernet: EMAC reset timeout
------------[ cut here ]------------
kernel BUG at /linux-next/net/core/dev.c:9844!

So let's use the right function (stmmac_pltfr_remove) in the error path.

Fixes: 6f537725a8ed ("net-next: stmmac: Add dwmac-sun8i")
Cc: <stable@vger.kernel.org> # v4.15+
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c