|
|
@@ -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");
|