#include "../include/can_sysdep.h"
#include "../include/main.h"
#include "../include/sja1000p.h"
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,14))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,14)) && defined(CONFIG_GENERIC_HARDIRQS)
#include <linux/irq.h>
#endif /* <2.6.14 */
#include <asm/arch/hardware.h>