]> rtime.felk.cvut.cz Git - socketcan-devel.git/commitdiff
Use macros provided by the kernel to define initialized locks.
authorthuermann <thuermann@030b6a49-0b11-0410-94ab-b0dab22257f2>
Mon, 30 Apr 2007 12:41:30 +0000 (12:41 +0000)
committerthuermann <thuermann@030b6a49-0b11-0410-94ab-b0dab22257f2>
Mon, 30 Apr 2007 12:41:30 +0000 (12:41 +0000)
git-svn-id: svn://svn.berlios.de//socketcan/trunk@253 030b6a49-0b11-0410-94ab-b0dab22257f2

kernel/2.6/net/can/af_can.c

index 2e74c9c10aa1d086039af697b0f6802a69e52c68..53d1f2b19bec0b76287653146303e15cba0f3581 100644 (file)
@@ -97,11 +97,11 @@ struct notifier {
 };
 
 static LIST_HEAD(notifier_list);
-static rwlock_t notifier_lock = RW_LOCK_UNLOCKED;
+static DEFINE_RWLOCK(notifier_lock);
 
 HLIST_HEAD(rx_dev_list);
 static struct dev_rcv_lists rx_alldev_list;
-static spinlock_t rcv_lists_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(rcv_lists_lock);
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
 static struct kmem_cache *rcv_cache __read_mostly;