Skip to contentSkip to conversation

sound: SPIN_LOCK_UNLOCKED cleanup

PATCH Applied Milind Arun Choudhary 2 participants 2 messages Apr 19, 2007

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sound: SPIN_LOCK_UNLOCKED cleanup

SPIN_LOCK_UNLOCKED cleanup,use __SPIN_LOCK_UNLOCKED instead

---

 soc/at91/at91-i2s.c          |    6 +++---
 1 file changed, 3  insertions(+), 3 deletions(-)
sound/soc/at91/at91-i2s.c +3 -3
index 9fc0c03..d65a47d 100644
@@ -151,20 +151,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,
 	},
Signature · 1 line
Milind Arun Choudhary
Applied
#1 lore raw

At Thu, 19 Apr 2007 17:14:44 +0530,

Quoted 4 lines · Milind Arun Choudhary

SPIN_LOCK_UNLOCKED cleanup,use __SPIN_LOCK_UNLOCKED instead

Thanks, applied to ALSA tree now. (The file was renamed to at91-ssc.c, so I applied it manually.)

Takashi

Quoted 42 lines

---

 soc/at91/at91-i2s.c          |    6 +++---
 1 file changed, 3  insertions(+), 3 deletions(-)
sound/soc/at91/at91-i2s.c +3 -3
index 9fc0c03..d65a47d 100644
@@ -151,20 +151,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,
 	},
Signature · 6 lines
Milind Arun Choudhary
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors