diff -pNaru5 a/ax99100_spi.c b/ax99100_spi.c --- a/ax99100_spi.c 2023-08-07 06:01:06.000000000 -0400 +++ b/ax99100_spi.c 2023-12-18 02:01:25.237345326 -0500 @@ -74,11 +74,11 @@ KERN_INFO "ASIX AX99100 PCIe Bridge to S int spi_suspend_count; #define NUM_DEVICE 16 static unsigned int spi_major = 241; static unsigned int spi_min_count = 0; /* device Class */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(5,19,0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(6,2,0) static char *ax_devnode(struct device *dev, umode_t *mode) #else static char *ax_devnode(const struct device *dev, umode_t *mode) #endif {