Skip to content

Commit 0b3e776

Browse files
arndbdavem330
authored andcommitted
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>
1 parent 653cd28 commit 0b3e776

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/microchip/lan743x_ptp.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,8 +831,7 @@ static void lan743x_ptp_sync_to_system_clock(struct lan743x_adapter *adapter)
831831
{
832832
struct timespec64 ts;
833833

834-
memset(&ts, 0, sizeof(ts));
835-
timekeeping_clocktai64(&ts);
834+
ktime_get_clocktai_ts64(&ts);
836835

837836
lan743x_ptp_clock_set(adapter, ts.tv_sec, ts.tv_nsec, 0);
838837
}

0 commit comments

Comments
 (0)