File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
drivers/isdn/hardware/mISDN Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 39
39
40
40
#include "hfc_pci.h"
41
41
42
+ static void hfcpci_softirq (struct timer_list * unused );
42
43
static const char * hfcpci_revision = "2.0" ;
43
44
44
45
static int HFC_cnt ;
45
46
static uint debug ;
46
47
static uint poll , tics ;
47
- static struct timer_list hfc_tl ;
48
+ static DEFINE_TIMER ( hfc_tl , hfcpci_softirq ) ;
48
49
static unsigned long hfc_jiffies ;
49
50
50
51
MODULE_AUTHOR ("Karsten Keil" );
@@ -2305,8 +2306,7 @@ hfcpci_softirq(struct timer_list *unused)
2305
2306
hfc_jiffies = jiffies + 1 ;
2306
2307
else
2307
2308
hfc_jiffies += tics ;
2308
- hfc_tl .expires = hfc_jiffies ;
2309
- add_timer (& hfc_tl );
2309
+ mod_timer (& hfc_tl , hfc_jiffies );
2310
2310
}
2311
2311
2312
2312
static int __init
@@ -2332,10 +2332,8 @@ HFC_init(void)
2332
2332
if (poll != HFCPCI_BTRANS_THRESHOLD ) {
2333
2333
printk (KERN_INFO "%s: Using alternative poll value of %d\n" ,
2334
2334
__func__ , poll );
2335
- timer_setup (& hfc_tl , hfcpci_softirq , 0 );
2336
- hfc_tl .expires = jiffies + tics ;
2337
- hfc_jiffies = hfc_tl .expires ;
2338
- add_timer (& hfc_tl );
2335
+ hfc_jiffies = jiffies + tics ;
2336
+ mod_timer (& hfc_tl , hfc_jiffies );
2339
2337
} else
2340
2338
tics = 0 ; /* indicate the use of controller's timer */
2341
2339
You can’t perform that action at this time.
0 commit comments