Skip to content

Commit

Permalink
[RTL8852BU] Update for upstream change
Browse files Browse the repository at this point in the history
prandom_u32() => get_random_u32()
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=de492c8

Signed-off-by: MichaIng <micha@dietpi.com>
  • Loading branch information
MichaIng committed Apr 18, 2024
1 parent 32dcc35 commit 817950c
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 817950c

Please sign in to comment.