aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/lantiq/ltq-atm/src/ltq_atm.c
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-07-07 13:44:04 +0000
committerJohn Crispin <blogic@openwrt.org>2015-07-07 13:44:04 +0000
commitce19d3e8c0fda1ede00fd3f1cb5725b490fdaa33 (patch)
tree8e0db833bb75ef65bbbf45f26d516dab5d2de646 /package/kernel/lantiq/ltq-atm/src/ltq_atm.c
parent2645d54fc6346ba2f99bd41fbeb51cf9943460bd (diff)
downloadmaster-187ad058-ce19d3e8c0fda1ede00fd3f1cb5725b490fdaa33.tar.gz
master-187ad058-ce19d3e8c0fda1ede00fd3f1cb5725b490fdaa33.tar.bz2
master-187ad058-ce19d3e8c0fda1ede00fd3f1cb5725b490fdaa33.zip
lantiq: Make ATM and PTM drivers compatible with kernel 4.1
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46218 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/lantiq/ltq-atm/src/ltq_atm.c')
-rw-r--r--package/kernel/lantiq/ltq-atm/src/ltq_atm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-atm/src/ltq_atm.c b/package/kernel/lantiq/ltq-atm/src/ltq_atm.c
index 15435f6bfb..84ce7fa2eb 100644
--- a/package/kernel/lantiq/ltq-atm/src/ltq_atm.c
+++ b/package/kernel/lantiq/ltq-atm/src/ltq_atm.c
@@ -1818,7 +1818,11 @@ static int ltq_atm_probe(struct platform_device *pdev)
}
/* register interrupt handler */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)
+ ret = request_irq(PPE_MAILBOX_IGU1_INT, mailbox_irq_handler, 0, "atm_mailbox_isr", &g_atm_priv_data);
+#else
ret = request_irq(PPE_MAILBOX_IGU1_INT, mailbox_irq_handler, IRQF_DISABLED, "atm_mailbox_isr", &g_atm_priv_data);
+#endif
if ( ret ) {
if ( ret == -EBUSY ) {
pr_err("IRQ may be occupied by other driver, please reconfig to disable it.\n");