oxnas: add testing support for Linux 5.15
[openwrt/openwrt.git] / target / linux / oxnas / files / drivers / ata / sata_oxnas.c
index b55995ccadd2b6cec4e3db7d500b7e83c176b1fc..a5d7b3de72331a3a5a33e3919e5ec62e92896b22 100644 (file)
@@ -31,6 +31,7 @@
 
 #include <linux/io.h>
 #include <linux/sizes.h>
+#include <linux/version.h>
 
 static inline void oxnas_register_clear_mask(void __iomem *p, unsigned mask)
 {
@@ -2231,7 +2232,9 @@ static struct scsi_host_template sata_oxnas_sht = {
        .can_queue = SATA_OXNAS_QUEUE_DEPTH,
        .sg_tablesize = SATA_OXNAS_MAX_PRD,
        .dma_boundary = ATA_DMA_BOUNDARY,
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 13, 0)
        .unchecked_isa_dma  = 0,
+#endif
 };