X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fnet%2Fwan%2Fsyncppp.c;h=84b65c60c799689bd772a5cd33939920dd4acebe;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=2329c23af83e0917de3ca0ff274962b9356409e7;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/net/wan/syncppp.c b/drivers/net/wan/syncppp.c index 2329c23af..84b65c60c 100644 --- a/drivers/net/wan/syncppp.c +++ b/drivers/net/wan/syncppp.c @@ -131,7 +131,7 @@ struct cisco_packet { static struct sppp *spppq; static struct timer_list sppp_keepalive_timer; -static spinlock_t spppq_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(spppq_lock); /* global xmit queue for sending packets while spinlock is held */ static struct sk_buff_head tx_queue; @@ -1483,6 +1483,6 @@ static void __exit sync_ppp_cleanup(void) module_init(sync_ppp_init); module_exit(sync_ppp_cleanup); -MODULE_PARM(debug,"1i"); +module_param(debug, int, 0); MODULE_LICENSE("GPL");