Skip to content

Commit

Permalink
[RTL8852BU] Update for upstream change
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaIng committed Dec 22, 2023
1 parent f51c03e commit 5e5f5ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/staging/rtl8852bu/os_dep/osdep_service_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,9 @@ u64 rtw_division64(u64 x, u64 y)

inline u32 rtw_random32(void)
{
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
return get_random_u32();
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
return prandom_u32();
#elif (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 18))
u32 random_int;
Expand Down

0 comments on commit 5e5f5ef

Please sign in to comment.