net: stmmac: Disable PTP reference clock on error
authorThierry Reding <treding@nvidia.com>
Fri, 10 Mar 2017 16:34:55 +0000 (17:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 06:35:19 +0000 (23:35 -0700)
commitc66f6c3775bed342693feec2925276fd13bb1355
tree376462f0b6c203615cc42445076a8fb7d3f3dcf3
parent6c1e5abe0780cecafdc24b64aefc84ce6924dda9
net: stmmac: Disable PTP reference clock on error

If an error occurs while opening the device, make sure to disable the
PTP reference clock.

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