diff options
| author | Giuseppe CAVALLARO <peppe.cavallaro@st.com> | 2014-08-25 14:56:19 +0200 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-08-25 15:33:10 -0700 |
| commit | f95f4045c734f801031782c8c6f8a5f381b0f69c (patch) | |
| tree | ccbdbdb8617cf6109a542a55b8dc80b82b60bc19 | |
| parent | stmmac: fix rx checksum programming (diff) | |
| download | linux-f95f4045c734f801031782c8c6f8a5f381b0f69c.tar.gz linux-f95f4045c734f801031782c8c6f8a5f381b0f69c.zip | |
stmmac: set ptp_clock to NULL while unregister
This is to properly put to NULL the ptp_clock while un-register the PTP support.
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c index b7ad3565566c..c5ee79d8a8c5 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c @@ -206,6 +206,7 @@ void stmmac_ptp_unregister(struct stmmac_priv *priv) { if (priv->ptp_clock) { ptp_clock_unregister(priv->ptp_clock); + priv->ptp_clock = NULL; pr_debug("Removed PTP HW clock successfully on %s\n", priv->dev->name); } |
