diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-08-15 20:49:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-19 20:56:40 +0300 |
commit | 0b3e776e2e809b808875b10e35d1047c5c548da4 (patch) | |
tree | 4ca174f9a9b090c04616803623a78f2e04d8b3cf /drivers | |
parent | 653cd284a8a857ddfcf24f5bc3bd204a229f6c9f (diff) | |
download | linux-0b3e776e2e809b808875b10e35d1047c5c548da4.tar.xz |
net: lan743x_ptp: convert to ktime_get_clocktai_ts64
timekeeping_clocktai64() has been renamed to ktime_get_clocktai_ts64()
for consistency with the other ktime_get_* access functions.
Rename the new caller that has come up as well.
Question: this is the only ptp driver that sets the hardware time
to the current system time in TAI. Why does it do that?
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/microchip/lan743x_ptp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/microchip/lan743x_ptp.c b/drivers/net/ethernet/microchip/lan743x_ptp.c index 64dba96edc79..ccdf9123f26f 100644 --- a/drivers/net/ethernet/microchip/lan743x_ptp.c +++ b/drivers/net/ethernet/microchip/lan743x_ptp.c @@ -831,8 +831,7 @@ static void lan743x_ptp_sync_to_system_clock(struct lan743x_adapter *adapter) { struct timespec64 ts; - memset(&ts, 0, sizeof(ts)); - timekeeping_clocktai64(&ts); + ktime_get_clocktai_ts64(&ts); lan743x_ptp_clock_set(adapter, ts.tv_sec, ts.tv_nsec, 0); } |