From 166d1a4bb960b36b52df25701a1b9e6209acb441 Mon Sep 17 00:00:00 2001 From: Franz Eitzinger Date: Thu, 22 Feb 2024 22:08:04 +0100 Subject: [PATCH] Use device_driver directly in struct usb_driver for Kernel 6.8 See https://github.com/torvalds/linux/commit/49a78b05d5ca1e23fd737747a8757b8bdc319b30 --- os_dep/linux/usb_intf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_dep/linux/usb_intf.c b/os_dep/linux/usb_intf.c index 28e4764..955ca03 100644 --- a/os_dep/linux/usb_intf.c +++ b/os_dep/linux/usb_intf.c @@ -320,7 +320,7 @@ struct rtw_usb_drv usb_drv = { .usbdrv.supports_autosuspend = 1, #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,