diff mbox

[RFCv3,15/16] radio-maxiradio: implement priority handling

Message ID c900f9a2c5052411200fdb9b31f262d54ceed5cc.1294493428.git.hverkuil@xs4all.nl (mailing list archive)
State RFC
Headers show

Commit Message

Hans Verkuil Jan. 8, 2011, 1:36 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c
index 1323a56..d38c60f 100644
--- a/drivers/media/radio/radio-maxiradio.c
+++ b/drivers/media/radio/radio-maxiradio.c
@@ -45,6 +45,7 @@ 
 #include <linux/slab.h>
 #include <media/v4l2-device.h>
 #include <media/v4l2-ioctl.h>
+#include <media/v4l2-fh.h>
 
 MODULE_AUTHOR("Dimitromanolakis Apostolos, apdim@grecian.net");
 MODULE_DESCRIPTION("Radio driver for the Guillemot Maxi Radio FM2000 radio.");
@@ -337,6 +338,8 @@  static int vidioc_s_ctrl(struct file *file, void *priv,
 static const struct v4l2_file_operations maxiradio_fops = {
 	.owner		= THIS_MODULE,
 	.unlocked_ioctl = video_ioctl2,
+	.open		= v4l2_fh_open,
+	.release	= v4l2_fh_release,
 };
 
 static const struct v4l2_ioctl_ops maxiradio_ioctl_ops = {