mirror of https://gitee.com/openkylin/linux.git
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:
parent
f702cf463e
commit
70edc800a3
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue