#define rt_printk printk
#endif
-int comedi_request_irq(unsigned int irq,void (*handler)(int,void *,
+int comedi_request_irq(unsigned int irq,irqreturn_t (*handler)(int,void *,
struct pt_regs *regs),unsigned long flags,const char *device,
comedi_device *dev_id);
void comedi_free_irq(unsigned int irq,comedi_device *dev_id);
#include <linux/version.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
-static inline int try_module_get(struct module *module)
-{
- if( module == NULL ) return 1;
- __MOD_INC_USE_COUNT( module );
- return 1;
-}
-static inline void module_put(struct module *module)
-{
- if( module == NULL ) return;
- __MOD_DEC_USE_COUNT( module )
-}
-#else
-#define MOD_IN_USE (0)
-#endif
#if LINUX_VERSION_CODE < 0x020115
#define MODULE_AUTHOR(a)
#include_next <linux/module.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
+static inline int try_module_get(struct module *module)
+{
+ if( module == NULL ) return 1;
+ __MOD_INC_USE_COUNT( module );
+ return 1;
+}
+static inline void module_put(struct module *module)
+{
+ if( module == NULL ) return;
+ __MOD_DEC_USE_COUNT( module );
+}
+#else
+#define MOD_IN_USE (0)
+#endif
+
#endif /* _COMPAT_MODULE_H */