blob: 4e5b9f424a2342a9a5b7026c328a54cee9a15de4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
diff -pNaru5 a/driver/mxusbserial/mxbus.c b/driver/mxusbserial/mxbus.c
--- a/driver/mxusbserial/mxbus.c 2024-12-22 01:33:26.176747497 -0500
+++ b/driver/mxusbserial/mxbus.c 2024-12-22 01:34:01.053786917 -0500
@@ -17,11 +17,15 @@
#ifndef FC6
#include <linux/config.h>
#endif
#endif
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0))
static int usb_serial_device_match (struct device *dev, struct device_driver *drv)
+#else
+static int usb_serial_device_match (struct device *dev, const struct device_driver *drv)
+#endif
{
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,14))
struct usb_serial_driver *driver;
#else
struct usb_serial_device_type *driver;
|