提交 0bf8e27f 编写于 作者: G Greg Kroah-Hartman

Staging: comedi: fix checkpatch.pl warning in interrupt.h

No more need for a kernel version check now that we are in the main
kernel tree.

Cc: David Schleef <ds@schleef.org>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 39eca2a0
...@@ -53,15 +53,8 @@ typedef void irqreturn_t; ...@@ -53,15 +53,8 @@ typedef void irqreturn_t;
#endif #endif
#endif #endif
/* if interrupt handler prototype has pt_regs* parameter */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
#define PT_REGS_ARG , struct pt_regs *regs
#define PT_REGS_CALL , regs
#define PT_REGS_NULL , NULL
#else
#define PT_REGS_ARG #define PT_REGS_ARG
#define PT_REGS_CALL #define PT_REGS_CALL
#define PT_REGS_NULL #define PT_REGS_NULL
#endif
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册