]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: bcm2835-audio: remove unused semaphores
authorAishwarya Pant <aishpant@gmail.com>
Mon, 6 Mar 2017 19:57:41 +0000 (01:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Mar 2017 19:11:39 +0000 (20:11 +0100)
This patch removes unused semaphores alsa_stream->buffers_update_sem
and alsa_stream->control_sem from struct bcm2835_alsa_stream

Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
drivers/staging/vc04_services/bcm2835-audio/bcm2835.h

index d60d7025b231d4a8e26799f3f6988471b759dfe0..059f54a7534bd11990a29069880f44d4b6378f77 100644 (file)
@@ -156,8 +156,6 @@ static int snd_bcm2835_playback_open_generic(
        alsa_stream->substream = substream;
        alsa_stream->idx = idx;
 
-       sema_init(&alsa_stream->buffers_update_sem, 0);
-       sema_init(&alsa_stream->control_sem, 0);
        spin_lock_init(&alsa_stream->lock);
 
        err = bcm2835_audio_open(alsa_stream);
index 2f9d1c95a29fa0d2cc0ceada753391378fba49e1..c53c2bdd849473f264d50ee7ccb33c3ab8205d25 100644 (file)
@@ -122,8 +122,6 @@ struct bcm2835_alsa_stream {
        struct snd_pcm_substream *substream;
        struct snd_pcm_indirect pcm_indirect;
 
-       struct semaphore buffers_update_sem;
-       struct semaphore control_sem;
        spinlock_t lock;
        volatile unsigned int control;
        volatile unsigned int status;