mISDN: Use DEFINE_SPINLOCK() for spinlock
[sfrench/cifs-2.6.git] / drivers / isdn / hardware / mISDN / hfcmulti.c
index 14092152b7865938ff82fb3882c7813c5ead7e70..4f7eaa17fb274883605a878226a046c8d7f27ee9 100644 (file)
 #define        MAX_FRAGS       (32 * MAX_CARDS)
 
 static LIST_HEAD(HFClist);
-static spinlock_t HFClock; /* global hfc list lock */
+static DEFINE_SPINLOCK(HFClock); /* global hfc list lock */
 
 static void ph_state_change(struct dchannel *);
 
 static struct hfc_multi *syncmaster;
 static int plxsd_master; /* if we have a master card (yet) */
-static spinlock_t plx_lock; /* may not acquire other lock inside */
+static DEFINE_SPINLOCK(plx_lock); /* may not acquire other lock inside */
 
 #define        TYP_E1          1
 #define        TYP_4S          4
@@ -5480,9 +5480,6 @@ HFCmulti_init(void)
        printk(KERN_DEBUG "%s: IRQ_DEBUG IS ENABLED!\n", __func__);
 #endif
 
-       spin_lock_init(&HFClock);
-       spin_lock_init(&plx_lock);
-
        if (debug & DEBUG_HFCMULTI_INIT)
                printk(KERN_DEBUG "%s: init entered\n", __func__);