[ALSA] sound: SPIN_LOCK_UNLOCKED cleanup
authorMilind Arun Choudhary <milindchoudhary@gmail.com>
Thu, 19 Apr 2007 13:22:56 +0000 (15:22 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 11 May 2007 14:56:08 +0000 (16:56 +0200)
SPIN_LOCK_UNLOCKED cleanup,use __SPIN_LOCK_UNLOCKED instead

Signed-off-by: Milind Arun Choudhary <milindchoudhary@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/soc/at91/at91-ssc.c

index db1635a095561e275f8e0b3f85569cf17be56d10..3d4e32cff75e5d94f9a436ea3cdb20548f627302 100644 (file)
@@ -152,20 +152,20 @@ static struct at91_ssc_info {
 } ssc_info[NUM_SSC_DEVICES] = {
        {
        .name           = "ssc0",
-       .lock           = SPIN_LOCK_UNLOCKED,
+       .lock           = __SPIN_LOCK_UNLOCKED(ssc_info[0].lock),
        .dir_mask       = 0,
        .initialized    = 0,
        },
 #if NUM_SSC_DEVICES == 3
        {
        .name           = "ssc1",
-       .lock           = SPIN_LOCK_UNLOCKED,
+       .lock           = __SPIN_LOCK_UNLOCKED(ssc_info[1].lock),
        .dir_mask       = 0,
        .initialized    = 0,
        },
        {
        .name           = "ssc2",
-       .lock           = SPIN_LOCK_UNLOCKED,
+       .lock           = __SPIN_LOCK_UNLOCKED(ssc_info[2].lock),
        .dir_mask       = 0,
        .initialized    = 0,
        },