Linux 6.8 compat: usbdrv.drvwrap

This commit is contained in:
Rin Cat (鈴猫) 2024-01-31 18:52:12 -05:00
parent 57184b87cb
commit 7bdc911e1c
No known key found for this signature in database
GPG Key ID: 2F3A6F9E2721BF2A

View File

@ -348,7 +348,7 @@ struct rtw_usb_drv usb_drv = {
.usbdrv.reset_resume = rtw_resume,
#endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 8, 0))
.usbdrv.drvwrap.driver.shutdown = rtw_dev_shutdown,
#else
.usbdrv.driver.shutdown = rtw_dev_shutdown,