From: Corentin Labbe <clabbe@xxxxxxxxxxxx> Date: Sun, 10 Nov 2019 11:30:48 +0000 > 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: 9f93ac8d4085 ("net-next: stmmac: Add dwmac-sun8i") > Cc: <stable@xxxxxxxxxxxxxxx> # v4.15+ > Signed-off-by: Corentin Labbe <clabbe@xxxxxxxxxxxx> Applied.