From 8bcf3778dec0c2761e4b60ae146ba59a6aea47b1 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Mon, 7 May 2007 16:44:12 -0300 Subject: Radio-maestro.c cleanup From: Douglas Landgraf Removed unnecessary semaphore. Signed-off-by: Douglas Schilling Landgraf Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/radio/radio-maestro.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'linux') diff --git a/linux/drivers/media/radio/radio-maestro.c b/linux/drivers/media/radio/radio-maestro.c index 792116a91..5867ccd9d 100644 --- a/linux/drivers/media/radio/radio-maestro.c +++ b/linux/drivers/media/radio/radio-maestro.c @@ -25,9 +25,6 @@ #include #include #include "compat.h" -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) -#include -#endif #include #include #include @@ -113,11 +110,6 @@ struct radio_device { muted, /* VIDEO_AUDIO_MUTE */ stereo, /* VIDEO_TUNER_STEREO_ON */ tuned; /* signal strength (0 or 0xffff) */ -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) - struct mutex lock; -#else - struct semaphore lock; -#endif }; static u32 radio_bits_get(struct radio_device *dev) @@ -401,7 +393,6 @@ static int __devinit maestro_probe(struct pci_dev *pdev, } radio_unit->io = pci_resource_start(pdev, 0) + GPIO_DATA; - mutex_init(&radio_unit->lock); maestro_radio_inst = video_device_alloc(); if (maestro_radio_inst == NULL) { -- cgit v1.2.3