Commit d01e6318 authored by Aishwarya Pant's avatar Aishwarya Pant Committed by Greg Kroah-Hartman

staging: bcm2835-audio: remove unused semaphores

This patch removes unused semaphores alsa_stream->buffers_update_sem
and alsa_stream->control_sem from struct bcm2835_alsa_stream
Signed-off-by: default avatarAishwarya Pant <aishpant@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 85fa002f
...@@ -156,8 +156,6 @@ static int snd_bcm2835_playback_open_generic( ...@@ -156,8 +156,6 @@ static int snd_bcm2835_playback_open_generic(
alsa_stream->substream = substream; alsa_stream->substream = substream;
alsa_stream->idx = idx; 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); spin_lock_init(&alsa_stream->lock);
err = bcm2835_audio_open(alsa_stream); err = bcm2835_audio_open(alsa_stream);
......
...@@ -122,8 +122,6 @@ struct bcm2835_alsa_stream { ...@@ -122,8 +122,6 @@ struct bcm2835_alsa_stream {
struct snd_pcm_substream *substream; struct snd_pcm_substream *substream;
struct snd_pcm_indirect pcm_indirect; struct snd_pcm_indirect pcm_indirect;
struct semaphore buffers_update_sem;
struct semaphore control_sem;
spinlock_t lock; spinlock_t lock;
volatile unsigned int control; volatile unsigned int control;
volatile unsigned int status; volatile unsigned int status;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment