Added a compatibility header for <asm/barrier.h> which is being added in
kernel version 3.4, along with the removal of <asm/system.h>.
Changed C files that previously included <asm/system.h> to include
<asm/barrier.h> instead.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
#include <linux/dma-mapping.h>
#include <asm/io.h>
-#include <asm/system.h>
+#include <asm/barrier.h>
#include "comedi_fops.h"
#include <linux/comedidev.h>
#include <linux/delay.h>
-#include <asm/system.h>
+#include <asm/barrier.h>
#include "comedi_pci.h"
#include "8253.h"
#include "comedi_pci.h"
#include <linux/comedidev.h>
-#include <asm/system.h>
+#include <asm/barrier.h>
#define PCI_MITE_SIZE 4096
#define PCI_DAQ_SIZE 4096
--- /dev/null
+/*
+ * asm/barrier.h compatibility header
+ */
+
+#ifndef __COMPAT_ASM_BARRIER_H_
+#define __COMPAT_ASM_BARRIER_H_
+
+#include <linux/version.h>
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)
+#include <asm/system.h>
+#else
+#include_next <asm/barrier.h>
+#endif
+
+#endif /* __COMPAT_ASM_BARRIER_H_ */