fix kernel_versin_func_build_fix
Change-Id: I529b895ece2f9563cf00804660c4ed05ffb4539d
diff --git a/marvell/linux/drivers/net/wireless/aic8800/aic8800_fdrv/rwnx_msg_rx.c b/marvell/linux/drivers/net/wireless/aic8800/aic8800_fdrv/rwnx_msg_rx.c
index b951bea..8666ce8 100755
--- a/marvell/linux/drivers/net/wireless/aic8800/aic8800_fdrv/rwnx_msg_rx.c
+++ b/marvell/linux/drivers/net/wireless/aic8800/aic8800_fdrv/rwnx_msg_rx.c
@@ -633,8 +633,8 @@
tsf = (u64)ts.tv_sec * 1000000 + div_u64(ts.tv_nsec, 1000);
mgmt->u.probe_resp.timestamp = ((u64)ts.tv_sec*1000000) + ts.tv_nsec/1000;
#elif LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
- struct timespec ts;
- ts = ktime_to_timespec(ktime_get_boottime());
+ struct timespec64 ts;
+ ts = ktime_to_timespec64(ktime_get_boottime());
tsf = (u64)ts.tv_sec * 1000000 + div_u64(ts.tv_nsec, 1000);
mgmt->u.probe_resp.timestamp = tsf;
#else
diff --git a/marvell/linux/drivers/rtc/rtc-scs.c b/marvell/linux/drivers/rtc/rtc-scs.c
index 0ee33dc..292c51d 100755
--- a/marvell/linux/drivers/rtc/rtc-scs.c
+++ b/marvell/linux/drivers/rtc/rtc-scs.c
@@ -284,7 +284,7 @@
int ret = 0;
unsigned long flags;
// Add by mbtk
- struct timespec ts;
+ struct timespec64 ts;
if ((tm->tm_year < 70) || (tm->tm_year > 300)) {
dev_err(info->dev,
@@ -295,7 +295,7 @@
spin_lock_irqsave(&info->lock, flags);
// Add by mbtk
- getnstimeofday(&ts);
+ ktime_get_real_ts64(&ts);
rtc_time_to_tm(ts.tv_sec - sys_tz.tz_minuteswest * 60, tm);
ticks = rtc_tm_to_time64(tm);
do {