OSDN Git Service

net: stmmac: Stop PHY and remove TX timer on error
authorThierry Reding <treding@nvidia.com>
Fri, 10 Mar 2017 16:34:54 +0000 (17:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 06:35:19 +0000 (23:35 -0700)
commit6c1e5abe0780cecafdc24b64aefc84ce6924dda9
tree7d18a9afc4e74464f9fd61352a76d5b447bf8733
parent9fbb9dd8eee459e810560a7d459103d865c48beb
net: stmmac: Stop PHY and remove TX timer on error

If an error occurs while opening the device, make sure that both the TX
timer and the PHY are properly cleaned up.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c