summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/gianfar_ptp.c
diff options
context:
space:
mode:
authorRichard Cochran <richardcochran@gmail.com>2012-04-04 02:59:19 +0400
committerDavid S. Miller <davem@davemloft.net>2012-04-04 13:28:45 +0400
commit6663628729cc434b25eed2b917ef8e888cc46475 (patch)
tree500f42a78577304aef8655cef2c121985b565c88 /drivers/net/ethernet/freescale/gianfar_ptp.c
parent7dff34998853dbb37ee705c48eca32d69c8b88aa (diff)
downloadlinux-6663628729cc434b25eed2b917ef8e888cc46475.tar.xz
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.c2
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);