diff options
Diffstat (limited to 'drivers/media/radio/radio-rtrack2.c')
-rw-r--r-- | drivers/media/radio/radio-rtrack2.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/media/radio/radio-rtrack2.c b/drivers/media/radio/radio-rtrack2.c index 7704f243b6f0..2587227214bf 100644 --- a/drivers/media/radio/radio-rtrack2.c +++ b/drivers/media/radio/radio-rtrack2.c | |||
@@ -280,26 +280,22 @@ static int vidioc_s_audio(struct file *file, void *priv, | |||
280 | 280 | ||
281 | static struct rt_device rtrack2_unit; | 281 | static struct rt_device rtrack2_unit; |
282 | 282 | ||
283 | static int rtrack2_exclusive_open(struct inode *inode, struct file *file) | 283 | static int rtrack2_exclusive_open(struct file *file) |
284 | { | 284 | { |
285 | return test_and_set_bit(0, &rtrack2_unit.in_use) ? -EBUSY : 0; | 285 | return test_and_set_bit(0, &rtrack2_unit.in_use) ? -EBUSY : 0; |
286 | } | 286 | } |
287 | 287 | ||
288 | static int rtrack2_exclusive_release(struct inode *inode, struct file *file) | 288 | static int rtrack2_exclusive_release(struct file *file) |
289 | { | 289 | { |
290 | clear_bit(0, &rtrack2_unit.in_use); | 290 | clear_bit(0, &rtrack2_unit.in_use); |
291 | return 0; | 291 | return 0; |
292 | } | 292 | } |
293 | 293 | ||
294 | static const struct file_operations rtrack2_fops = { | 294 | static const struct v4l2_file_operations rtrack2_fops = { |
295 | .owner = THIS_MODULE, | 295 | .owner = THIS_MODULE, |
296 | .open = rtrack2_exclusive_open, | 296 | .open = rtrack2_exclusive_open, |
297 | .release = rtrack2_exclusive_release, | 297 | .release = rtrack2_exclusive_release, |
298 | .ioctl = video_ioctl2, | 298 | .ioctl = video_ioctl2, |
299 | #ifdef CONFIG_COMPAT | ||
300 | .compat_ioctl = v4l_compat_ioctl32, | ||
301 | #endif | ||
302 | .llseek = no_llseek, | ||
303 | }; | 299 | }; |
304 | 300 | ||
305 | static const struct v4l2_ioctl_ops rtrack2_ioctl_ops = { | 301 | static const struct v4l2_ioctl_ops rtrack2_ioctl_ops = { |