fix pci-compat include for newer kernels

This commit is contained in:
Ralph Metzler 2016-06-10 09:43:04 +02:00
parent 8908df8098
commit 39ce49dbd8
1 changed files with 4 additions and 0 deletions

View File

@ -25,7 +25,11 @@
#include "ddbridge.h"
#include "ddbridge-regs.h"
#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0))
#include <asm-generic/pci-dma-compat.h>
#else
#include <linux/pci-dma-compat.h>
#endif
static int adapter_alloc = 3;
module_param(adapter_alloc, int, 0444);