rtl8188eu: Fix build for API changes in kernel 5.17

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2022-02-03 10:21:57 -06:00
parent 5cff05afbb
commit 775137f273
4 changed files with 10 additions and 3 deletions

View file

@ -54,7 +54,7 @@ int rtl8188eu_init_recv_priv(struct adapter *padapter)
struct recv_buf *precvbuf;
tasklet_init(&precvpriv->recv_tasklet,
(void(*)(unsigned long))rtl8188eu_recv_tasklet,
(void *)rtl8188eu_recv_tasklet,
(unsigned long)padapter);
/* init recv_buf */

View file

@ -30,7 +30,7 @@ s32 rtl8188eu_init_xmit_priv(struct adapter *adapt)
struct xmit_priv *pxmitpriv = &adapt->xmitpriv;
tasklet_init(&pxmitpriv->xmit_tasklet,
(void(*)(unsigned long))rtl8188eu_xmit_tasklet,
(void *)rtl8188eu_xmit_tasklet,
(unsigned long)adapt);
return _SUCCESS;
}