diff -aurN a/uio_netx.c b/uio_netx.c --- a/uio_netx.c 2015-07-13 09:59:25.000000000 +0200 +++ b/uio_netx.c 2015-07-28 09:54:59.000000000 +0200 @@ -16,6 +16,7 @@ #include #include #include +#include #include #include @@ -351,7 +352,11 @@ } info->irq = dev->irq; +# if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)) info->irq_flags = IRQF_DISABLED | IRQF_SHARED; +# else + info->irq_flags = IRQF_SHARED; +# endif info->handler = netx_handler; info->version = "0.0.1"; info->irqcontrol = netx_enable_irq; @@ -580,7 +585,11 @@ ((struct uio_netx_priv*)(info->priv))->no_irq_stat = 1; info->irq = custom_irq[i]; +# if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)) info->irq_flags = IRQF_DISABLED; +# else + info->irq_flags = 0; +# endif info->handler = netx_handler; info->version = "0.0.1"; info->irqcontrol = netx_enable_irq;