sound: Replace old style lock initializer
[firefly-linux-kernel-4.4.55.git] / sound / oss / dmasound / dmasound_core.c
index 793b7f4784332b1c039f7f4153ff9aafb87cd5a8..3f3c3f71db4b59d4204741e82df1f256ae155808 100644 (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)
 {