Fix Linux 2.6.30 compatibility

Linux 2.6.30 doesn't define IRQ_NONE as a macro.  Assume irqreturn_t,
IRQ_NONE and IRQ_HANDLED to be present on Linux 2.6.29 and newer.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3985 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2009-04-08 06:09:58 +00:00
parent 5702465321
commit 0cc57971d2
1 changed files with 2 additions and 0 deletions

View File

@ -103,11 +103,13 @@ typedef void *TQUEUE_ARG;
/*
* Guess how the interrupt handler should work.
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
#if !defined(IRQ_NONE)
typedef void irqreturn_t;
#define IRQ_NONE
#define IRQ_HANDLED
#endif /* !defined(IRQ_NONE) */
#endif /* Linux < 2.6.29 */
#ifndef SET_MODULE_OWNER
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)