diff options
Diffstat (limited to 'drivers/media/radio/radio-aimslab.c')
-rw-r--r-- | drivers/media/radio/radio-aimslab.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/media/radio/radio-aimslab.c b/drivers/media/radio/radio-aimslab.c index dd6d3dfcd7d2..bfa13b8b3043 100644 --- a/drivers/media/radio/radio-aimslab.c +++ b/drivers/media/radio/radio-aimslab.c | |||
@@ -374,26 +374,22 @@ static int vidioc_s_audio(struct file *file, void *priv, | |||
374 | 374 | ||
375 | static struct rt_device rtrack_unit; | 375 | static struct rt_device rtrack_unit; |
376 | 376 | ||
377 | static int rtrack_exclusive_open(struct inode *inode, struct file *file) | 377 | static int rtrack_exclusive_open(struct file *file) |
378 | { | 378 | { |
379 | return test_and_set_bit(0, &rtrack_unit.in_use) ? -EBUSY : 0; | 379 | return test_and_set_bit(0, &rtrack_unit.in_use) ? -EBUSY : 0; |
380 | } | 380 | } |
381 | 381 | ||
382 | static int rtrack_exclusive_release(struct inode *inode, struct file *file) | 382 | static int rtrack_exclusive_release(struct file *file) |
383 | { | 383 | { |
384 | clear_bit(0, &rtrack_unit.in_use); | 384 | clear_bit(0, &rtrack_unit.in_use); |
385 | return 0; | 385 | return 0; |
386 | } | 386 | } |
387 | 387 | ||
388 | static const struct file_operations rtrack_fops = { | 388 | static const struct v4l2_file_operations rtrack_fops = { |
389 | .owner = THIS_MODULE, | 389 | .owner = THIS_MODULE, |
390 | .open = rtrack_exclusive_open, | 390 | .open = rtrack_exclusive_open, |
391 | .release = rtrack_exclusive_release, | 391 | .release = rtrack_exclusive_release, |
392 | .ioctl = video_ioctl2, | 392 | .ioctl = video_ioctl2, |
393 | #ifdef CONFIG_COMPAT | ||
394 | .compat_ioctl = v4l_compat_ioctl32, | ||
395 | #endif | ||
396 | .llseek = no_llseek, | ||
397 | }; | 393 | }; |
398 | 394 | ||
399 | static const struct v4l2_ioctl_ops rtrack_ioctl_ops = { | 395 | static const struct v4l2_ioctl_ops rtrack_ioctl_ops = { |