1
0
Fork 0

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>
hifive-unleashed-5.1
Thomas Gleixner 2009-11-06 22:41:29 +00:00 committed by Takashi Iwai
parent f702cf463e
commit 70edc800a3
1 changed files with 3 additions and 1 deletions

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)
{