Skip to content

Commit

Permalink
sound: Replace old style lock initializer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Gleixner authored and Takashi Iwai committed Nov 7, 2009
1 parent f702cf4 commit 70edc80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sound/oss/dmasound/dmasound_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 70edc80

Please sign in to comment.