fix irq args compatiblity with pre 2.6.19
authorDave Airlie <airlied@optimus.localdomain>
Tue, 19 Dec 2006 07:03:20 +0000 (18:03 +1100)
committerDave Airlie <airlied@linux.ie>
Tue, 19 Dec 2006 07:03:20 +0000 (18:03 +1100)
linux-core/drm_compat.h
linux-core/drm_os_linux.h

index a1a9439..c4e80e9 100644 (file)
 #define module_param(name, type, perm)
 #endif
 
+/* older kernels had different irq args */
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19))
+#undef DRM_IRQ_ARGS
+#define DRM_IRQ_ARGS           int irq, void *arg, struct pt_regs *regs
+#endif
+
 #ifndef list_for_each_safe
 #define list_for_each_safe(pos, n, head)                               \
        for (pos = (head)->next, n = pos->next; pos != (head);          \
index 4270097..49ba2fb 100644 (file)
@@ -56,7 +56,7 @@
                        drm_device_t    *dev    = priv->head->dev
 
 /** IRQ handler arguments and return type and values */
-#define DRM_IRQ_ARGS           int irq, void *arg, struct pt_regs *regs
+#define DRM_IRQ_ARGS           int irq, void *arg
 /** backwards compatibility with old irq return values */
 #ifndef IRQ_HANDLED
 typedef void irqreturn_t;