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 3939
4040#include "hfc_pci.h"
4141
42+ static void hfcpci_softirq (struct timer_list * unused );
4243static const char * hfcpci_revision = "2.0" ;
4344
4445static int HFC_cnt ;
4546static uint debug ;
4647static uint poll , tics ;
47- static struct timer_list hfc_tl ;
48+ static DEFINE_TIMER ( hfc_tl , hfcpci_softirq ) ;
4849static unsigned long hfc_jiffies ;
4950
5051MODULE_AUTHOR ("Karsten Keil" );
@@ -2305,8 +2306,7 @@ hfcpci_softirq(struct timer_list *unused)
23052306 hfc_jiffies = jiffies + 1 ;
23062307 else
23072308 hfc_jiffies += tics ;
2308- hfc_tl .expires = hfc_jiffies ;
2309- add_timer (& hfc_tl );
2309+ mod_timer (& hfc_tl , hfc_jiffies );
23102310}
23112311
23122312static int __init
@@ -2332,10 +2332,8 @@ HFC_init(void)
23322332 if (poll != HFCPCI_BTRANS_THRESHOLD ) {
23332333 printk (KERN_INFO "%s: Using alternative poll value of %d\n" ,
23342334 __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 );
23392337 } else
23402338 tics = 0 ; /* indicate the use of controller's timer */
23412339
You can’t perform that action at this time.
0 commit comments