Hi all,
Patch below for use on newer kernels where IRQ_NONE and co became an enum
instead of an ifdef. This stops the kernel trapping due to bad IRQ handling
on shared interrupts with OCF HW drivers.
Cheers,
Davidm
Index: modules/ocf/ocf-compat.h
===================================================================
RCS file: ocf/ocf-compat.h,v
retrieving revision 1.12
diff -u -r1.12 ocf-compat.h
--- modules/ocf/ocf-compat.h 12 Aug 2009 00:52:25 -0000 1.12
+++ modules/ocf/ocf-compat.h 17 Sep 2009 00:45:32 -0000
@@ -191,10 +191,14 @@
/* older kernels don't have these */
-#ifndef IRQ_NONE
+#include <asm/irq.h>
+#if !defined(IRQ_NONE) && !defined(IRQ_RETVAL)
#define IRQ_NONE
#define IRQ_HANDLED
+#define IRQ_WAKE_THREAD
+#define IRQ_RETVAL
#define irqreturn_t void
+typedef irqreturn_t (*irq_handler_t)(int irq, void *arg, struct pt_regs *regs);
#endif
#ifndef IRQF_SHARED
#define IRQF_SHARED SA_SHIRQ
--
David McCullough, dav...@se..., Ph:+61 734352815
McAfee - SnapGear http://www.snapgear.com http://www.uCdot.org
|