diff options
Diffstat (limited to 'drivers/media/video/v4l2-fh.c')
-rw-r--r-- | drivers/media/video/v4l2-fh.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/v4l2-fh.c b/drivers/media/video/v4l2-fh.c index 93ea0af5fac1..aab2fb639ef1 100644 --- a/drivers/media/video/v4l2-fh.c +++ b/drivers/media/video/v4l2-fh.c @@ -25,6 +25,8 @@ #include <linux/bitops.h> #include <media/v4l2-dev.h> #include <media/v4l2-fh.h> +#include <media/v4l2-event.h> +#include <media/v4l2-ioctl.h> int v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev) { @@ -32,7 +34,7 @@ int v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev) INIT_LIST_HEAD(&fh->list); set_bit(V4L2_FL_USES_V4L2_FH, &fh->vdev->flags); - return 0; + return v4l2_event_init(fh); } EXPORT_SYMBOL_GPL(v4l2_fh_init); @@ -62,5 +64,7 @@ void v4l2_fh_exit(struct v4l2_fh *fh) return; fh->vdev = NULL; + + v4l2_event_free(fh); } EXPORT_SYMBOL_GPL(v4l2_fh_exit); |