add doit.sh
[openwrt/staging/blogic.git] / patches / 0083-timer_list.patch
1 --- a/drivers/net/wireless/atmel/at76c50x-usb.c
2 +++ b/drivers/net/wireless/atmel/at76c50x-usb.c
3 @@ -518,11 +518,19 @@ exit:
4
5 /* LED trigger */
6 static int tx_activity;
7 +#if LINUX_VERSION_IS_LESS(4,15,0)
8 +static void at76_ledtrig_tx_timerfunc(unsigned long data);
9 +#else
10 static void at76_ledtrig_tx_timerfunc(struct timer_list *unused);
11 +#endif
12 static DEFINE_TIMER(ledtrig_tx_timer, at76_ledtrig_tx_timerfunc);
13 DEFINE_LED_TRIGGER(ledtrig_tx);
14
15 +#if LINUX_VERSION_IS_LESS(4,15,0)
16 +static void at76_ledtrig_tx_timerfunc(unsigned long data)
17 +#else
18 static void at76_ledtrig_tx_timerfunc(struct timer_list *unused)
19 +#endif
20 {
21 static int tx_lastactivity;
22