@@ -63,6 +63,7 @@
#include <linux/videodev2.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
+#include <media/v4l2-fh.h>
#include <linux/usb.h>
#include <linux/version.h> /* for KERNEL_VERSION MACRO */
#include <linux/mutex.h>
@@ -513,6 +514,8 @@ static int usb_amradio_resume(struct usb_interface *intf)
static const struct v4l2_file_operations usb_amradio_fops = {
.owner = THIS_MODULE,
.unlocked_ioctl = video_ioctl2,
+ .open = v4l2_fh_open,
+ .release = v4l2_fh_release,
};
static const struct v4l2_ioctl_ops usb_amradio_ioctl_ops = {