diff options
author | John Crispin <john@openwrt.org> | 2015-07-07 13:44:04 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-07-07 13:44:04 +0000 |
commit | 4c8227539e608a0c118f0985b56f39a7ce979a76 (patch) | |
tree | 760ff39ef2806ab9f8b7aac9d0b147e497047014 /package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c | |
parent | 243d347a6dc696edaa7b813df661b8286f34507e (diff) | |
download | master-31e0f0ae-4c8227539e608a0c118f0985b56f39a7ce979a76.tar.gz master-31e0f0ae-4c8227539e608a0c118f0985b56f39a7ce979a76.tar.bz2 master-31e0f0ae-4c8227539e608a0c118f0985b56f39a7ce979a76.zip |
lantiq: Make ATM and PTM drivers compatible with kernel 4.1
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
SVN-Revision: 46218
Diffstat (limited to 'package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c')
-rw-r--r-- | package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c b/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c index b328261c5f..9adeba4d00 100644 --- a/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c +++ b/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c @@ -964,7 +964,11 @@ static int ifx_ptm_init(void) } /* register interrupt handler */ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0) + ret = request_irq(PPE_MAILBOX_IGU1_INT, mailbox_irq_handler, 0, "ptm_mailbox_isr", &g_ptm_priv_data); +#else ret = request_irq(PPE_MAILBOX_IGU1_INT, mailbox_irq_handler, IRQF_DISABLED, "ptm_mailbox_isr", &g_ptm_priv_data); +#endif if ( ret ) { if ( ret == -EBUSY ) { err("IRQ may be occupied by other driver, please reconfig to disable it."); |