* [KJ][PATCH] sound: SPIN_LOCK_UNLOCKED cleanup
@ 2007-04-19 11:44 Milind Arun Choudhary
2007-04-19 13:23 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Milind Arun Choudhary @ 2007-04-19 11:44 UTC (permalink / raw)
To: Kernel Janitors, ALSA; +Cc: Andrw Morton, LKML, liam.girdwood
SPIN_LOCK_UNLOCKED cleanup,use __SPIN_LOCK_UNLOCKED instead
Signed-off-by: Milind Arun Choudhary <milindchoudhary@gmail.com>
---
soc/at91/at91-i2s.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/at91/at91-i2s.c b/sound/soc/at91/at91-i2s.c
index 9fc0c03..d65a47d 100644
--- a/sound/soc/at91/at91-i2s.c
+++ b/sound/soc/at91/at91-i2s.c
@@ -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,
},
--
Milind Arun Choudhary
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [KJ][PATCH] sound: SPIN_LOCK_UNLOCKED cleanup
2007-04-19 11:44 [KJ][PATCH] sound: SPIN_LOCK_UNLOCKED cleanup Milind Arun Choudhary
@ 2007-04-19 13:23 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2007-04-19 13:23 UTC (permalink / raw)
To: Milind Arun Choudhary; +Cc: Kernel Janitors, Andrw Morton, LKML, liam.girdwood
At Thu, 19 Apr 2007 17:14:44 +0530,
Milind Arun Choudhary wrote:
>
> SPIN_LOCK_UNLOCKED cleanup,use __SPIN_LOCK_UNLOCKED instead
>
> Signed-off-by: Milind Arun Choudhary <milindchoudhary@gmail.com>
Thanks, applied to ALSA tree now. (The file was renamed to
at91-ssc.c, so I applied it manually.)
Takashi
>
> ---
>
> soc/at91/at91-i2s.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/sound/soc/at91/at91-i2s.c b/sound/soc/at91/at91-i2s.c
> index 9fc0c03..d65a47d 100644
> --- a/sound/soc/at91/at91-i2s.c
> +++ b/sound/soc/at91/at91-i2s.c
> @@ -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,
> },
> --
> Milind Arun Choudhary
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-19 13:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-19 11:44 [KJ][PATCH] sound: SPIN_LOCK_UNLOCKED cleanup Milind Arun Choudhary
2007-04-19 13:23 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox