sound: Replace old style lock initializer

SPIN_LOCK_UNLOCKED is deprecated. Use __SPIN_LOCK_UNLOCKED instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Thomas Gleixner 2009-11-06 22:41:29 +00:00 committed by Takashi Iwai
parent f702cf463e
commit 70edc800a3

View file

@ -219,7 +219,9 @@ static int shared_resources_initialised;
* Mid level stuff
*/
struct sound_settings dmasound = { .lock = SPIN_LOCK_UNLOCKED };
struct sound_settings dmasound = {
.lock = __SPIN_LOCK_UNLOCKED(dmasound.lock)
};
static inline void sound_silence(void)
{