提交 70edc800 编写于 作者: T Thomas Gleixner 提交者: Takashi Iwai

sound: Replace old style lock initializer

SPIN_LOCK_UNLOCKED is deprecated. Use __SPIN_LOCK_UNLOCKED instead.
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 f702cf46
...@@ -219,7 +219,9 @@ static int shared_resources_initialised; ...@@ -219,7 +219,9 @@ static int shared_resources_initialised;
* Mid level stuff * 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) static inline void sound_silence(void)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册