[media] tea575x: allow multiple opens

Change locking to allow tea575x-radio device to be opened multiple times.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Ondrej Zary
2011-06-11 10:28:59 -03:00
committed by Mauro Carvalho Chehab
parent 9cd49719fd
commit 6a529c1a4a
2 changed files with 4 additions and 20 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ struct snd_tea575x {
bool tuned; /* tuned to a station */
unsigned int val; /* hw value */
unsigned long freq; /* frequency */
unsigned long in_use; /* set if the device is in use */
struct mutex mutex;
struct snd_tea575x_ops *ops;
void *private_data;
u8 card[32];