mirror of
https://github.com/amazingfate/rtl8723ds.git
synced 2025-10-13 12:26:02 +01:00
rtl8723ds: Fix warning in do_div
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
c65bc55a36
commit
47ce045cd8
@ -342,7 +342,8 @@ static u64 rtw_get_systime_us(void)
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0))
|
||||
ktime_t ts;
|
||||
ts = ktime_get_boottime();
|
||||
return do_div(ts, 1000);
|
||||
do_div(ts, (uint32_t)1000);
|
||||
return ts;
|
||||
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39))
|
||||
struct timespec ts;
|
||||
get_monotonic_boottime(&ts);
|
||||
|
Loading…
x
Reference in New Issue
Block a user