From: Nicolas Thill Date: Sat, 14 Feb 2015 13:53:44 +0000 (+0000) Subject: generic: ocf: irq compat stuff is not needed anymore X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=40c0261f34f69ee8dbe24dac926592581e1fdd58;p=openwrt%2Fstaging%2Fmkresin.git generic: ocf: irq compat stuff is not needed anymore Signed-off-by: Nicolas Thill SVN-Revision: 44444 --- diff --git a/target/linux/generic/files/crypto/ocf/ocf-compat.h b/target/linux/generic/files/crypto/ocf/ocf-compat.h index 831927e880..b38cf27b3a 100644 --- a/target/linux/generic/files/crypto/ocf/ocf-compat.h +++ b/target/linux/generic/files/crypto/ocf/ocf-compat.h @@ -211,6 +211,7 @@ struct ocf_device { /* older kernels don't have these */ #include +#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) \