]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ALSA: wss_lib: remove second mutexes initialization
authorKrzysztof Helt <krzysztof.h1@wp.pl>
Sun, 3 Aug 2008 15:57:21 +0000 (17:57 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 6 Aug 2008 13:40:06 +0000 (15:40 +0200)
Remove initializations of spinlock and mutexes which
are done earlier in snd_wss_new(). The snd_wss_new()
is called from snd_wss_create().

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/isa/wss/wss_lib.c

index f2df77bd1308ca96d6bcf8d9f2769737e6d18908..fff8a3b79fdf771f044d797dc409de361077502b 100644 (file)
@@ -1866,10 +1866,6 @@ int snd_wss_pcm(struct snd_wss *chip, int device, struct snd_pcm **rpcm)
        if (err < 0)
                return err;
 
-       spin_lock_init(&chip->reg_lock);
-       mutex_init(&chip->mce_mutex);
-       mutex_init(&chip->open_mutex);
-
        snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_wss_playback_ops);
        snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_wss_capture_ops);