diff options
author | Richard Cochran <richardcochran@gmail.com> | 2012-04-03 22:59:19 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-04 05:28:45 -0400 |
commit | 6663628729cc434b25eed2b917ef8e888cc46475 (patch) | |
tree | 500f42a78577304aef8655cef2c121985b565c88 /drivers/net/ethernet/freescale/gianfar_ptp.c | |
parent | 7dff34998853dbb37ee705c48eca32d69c8b88aa (diff) | |
download | linux-6663628729cc434b25eed2b917ef8e888cc46475.tar.bz2 |
gianfar: Support the get_ts_info ethtool method.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/gianfar_ptp.c')
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar_ptp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar_ptp.c b/drivers/net/ethernet/freescale/gianfar_ptp.c index 5fd620bec15c..c08e5d40fecb 100644 --- a/drivers/net/ethernet/freescale/gianfar_ptp.c +++ b/drivers/net/ethernet/freescale/gianfar_ptp.c @@ -515,6 +515,7 @@ static int gianfar_ptp_probe(struct platform_device *dev) err = PTR_ERR(etsects->clock); goto no_clock; } + gfar_phc_clock = ptp_clock_index(etsects->clock); dev_set_drvdata(&dev->dev, etsects); @@ -538,6 +539,7 @@ static int gianfar_ptp_remove(struct platform_device *dev) gfar_write(&etsects->regs->tmr_temask, 0); gfar_write(&etsects->regs->tmr_ctrl, 0); + gfar_phc_clock = -1; ptp_clock_unregister(etsects->clock); iounmap(etsects->regs); release_resource(etsects->rsrc); |