X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fax25%2Fax25_iface.c;h=d68aff100729abbfa51f2677ae565f6a156ad08d;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=d58243d461919d6454d37888b80e65a224969e10;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/net/ax25/ax25_iface.c b/net/ax25/ax25_iface.c index d58243d46..d68aff100 100644 --- a/net/ax25/ax25_iface.c +++ b/net/ax25/ax25_iface.c @@ -34,20 +34,20 @@ static struct protocol_struct { unsigned int pid; int (*func)(struct sk_buff *, ax25_cb *); } *protocol_list = NULL; -static rwlock_t protocol_list_lock = RW_LOCK_UNLOCKED; +static DEFINE_RWLOCK(protocol_list_lock); static struct linkfail_struct { struct linkfail_struct *next; void (*func)(ax25_cb *, int); } *linkfail_list = NULL; -static spinlock_t linkfail_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(linkfail_lock); static struct listen_struct { struct listen_struct *next; ax25_address callsign; struct net_device *dev; } *listen_list = NULL; -static spinlock_t listen_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(listen_lock); int ax25_protocol_register(unsigned int pid, int (*func)(struct sk_buff *, ax25_cb *))