stmmac: set ptp_clock to NULL while unregister
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Mon, 25 Aug 2014 12:56:19 +0000 (14:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Aug 2014 22:33:10 +0000 (15:33 -0700)
commitf95f4045c734f801031782c8c6f8a5f381b0f69c
treeccbdbdb8617cf6109a542a55b8dc80b82b60bc19
parent978aded4b39de7f441bb9bfb18cf830de6a968d3
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>
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c