浏览代码

generic: ocf: irq compat stuff is not needed anymore

Signed-off-by: Nicolas Thill <[email protected]>

SVN-Revision: 44444
Nicolas Thill 10 年之前
父节点
当前提交
40c0261f34
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      target/linux/generic/files/crypto/ocf/ocf-compat.h

+ 2 - 0
target/linux/generic/files/crypto/ocf/ocf-compat.h

@@ -211,6 +211,7 @@ struct ocf_device {
 /* older kernels don't have these */
 
 #include <asm/irq.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
 #if !defined(IRQ_NONE) && !defined(IRQ_RETVAL)
 #define IRQ_NONE
 #define IRQ_HANDLED
@@ -222,6 +223,7 @@ typedef irqreturn_t (*irq_handler_t)(int irq, void *arg, struct pt_regs *regs);
 #ifndef IRQF_SHARED
 #define IRQF_SHARED	SA_SHIRQ
 #endif
+#endif
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
 # define strlcpy(dest,src,len) \