diff options
Diffstat (limited to 'package/kernel/lantiq/ltq-atm')
-rw-r--r-- | package/kernel/lantiq/ltq-atm/src/ltq_atm.c | 5 |
1 files changed, 5 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 55362a5c7b..5d23b5ec48 100644 --- a/package/kernel/lantiq/ltq-atm/src/ltq_atm.c +++ b/package/kernel/lantiq/ltq-atm/src/ltq_atm.c @@ -41,6 +41,7 @@ #include <linux/atm.h> #include <linux/clk.h> #include <linux/interrupt.h> +#include <linux/version.h> #ifdef CONFIG_XFRM #include <net/xfrm.h> #endif @@ -199,7 +200,11 @@ static inline void mailbox_aal_rx_handler(void); static irqreturn_t mailbox_irq_handler(int, void *); static inline void mailbox_signal(unsigned int, int); static void do_ppe_tasklet(unsigned long); +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,9,0) DECLARE_TASKLET(g_dma_tasklet, do_ppe_tasklet, 0); +#else +DECLARE_TASKLET_OLD(g_dma_tasklet, do_ppe_tasklet); +#endif /* * QSB & HTU setting functions |