diff options
Diffstat (limited to 'drivers/media/video/meye.c')
-rw-r--r-- | drivers/media/video/meye.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/drivers/media/video/meye.c b/drivers/media/video/meye.c index 2fb5854cf6f0..7c8ef6ac6c39 100644 --- a/drivers/media/video/meye.c +++ b/drivers/media/video/meye.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <linux/init.h> | 31 | #include <linux/init.h> |
32 | #include <linux/videodev.h> | 32 | #include <linux/videodev.h> |
33 | #include <media/v4l2-common.h> | 33 | #include <media/v4l2-common.h> |
34 | #include <media/v4l2-ioctl.h> | ||
34 | #include <asm/uaccess.h> | 35 | #include <asm/uaccess.h> |
35 | #include <asm/io.h> | 36 | #include <asm/io.h> |
36 | #include <linux/delay.h> | 37 | #include <linux/delay.h> |
@@ -1697,13 +1698,7 @@ static const struct file_operations meye_fops = { | |||
1697 | .llseek = no_llseek, | 1698 | .llseek = no_llseek, |
1698 | }; | 1699 | }; |
1699 | 1700 | ||
1700 | static struct video_device meye_template = { | 1701 | static const struct v4l2_ioctl_ops meye_ioctl_ops = { |
1701 | .owner = THIS_MODULE, | ||
1702 | .name = "meye", | ||
1703 | .type = VID_TYPE_CAPTURE, | ||
1704 | .fops = &meye_fops, | ||
1705 | .release = video_device_release, | ||
1706 | .minor = -1, | ||
1707 | .vidioc_querycap = vidioc_querycap, | 1702 | .vidioc_querycap = vidioc_querycap, |
1708 | .vidioc_enum_input = vidioc_enum_input, | 1703 | .vidioc_enum_input = vidioc_enum_input, |
1709 | .vidioc_g_input = vidioc_g_input, | 1704 | .vidioc_g_input = vidioc_g_input, |
@@ -1724,6 +1719,14 @@ static struct video_device meye_template = { | |||
1724 | .vidioc_default = vidioc_default, | 1719 | .vidioc_default = vidioc_default, |
1725 | }; | 1720 | }; |
1726 | 1721 | ||
1722 | static struct video_device meye_template = { | ||
1723 | .name = "meye", | ||
1724 | .fops = &meye_fops, | ||
1725 | .ioctl_ops = &meye_ioctl_ops, | ||
1726 | .release = video_device_release, | ||
1727 | .minor = -1, | ||
1728 | }; | ||
1729 | |||
1727 | #ifdef CONFIG_PM | 1730 | #ifdef CONFIG_PM |
1728 | static int meye_suspend(struct pci_dev *pdev, pm_message_t state) | 1731 | static int meye_suspend(struct pci_dev *pdev, pm_message_t state) |
1729 | { | 1732 | { |
@@ -1801,7 +1804,7 @@ static int __devinit meye_probe(struct pci_dev *pcidev, | |||
1801 | } | 1804 | } |
1802 | 1805 | ||
1803 | memcpy(meye.video_dev, &meye_template, sizeof(meye_template)); | 1806 | memcpy(meye.video_dev, &meye_template, sizeof(meye_template)); |
1804 | meye.video_dev->dev = &meye.mchip_dev->dev; | 1807 | meye.video_dev->parent = &meye.mchip_dev->dev; |
1805 | 1808 | ||
1806 | if ((ret = sony_pic_camera_command(SONY_PIC_COMMAND_SETCAMERA, 1))) { | 1809 | if ((ret = sony_pic_camera_command(SONY_PIC_COMMAND_SETCAMERA, 1))) { |
1807 | printk(KERN_ERR "meye: unable to power on the camera\n"); | 1810 | printk(KERN_ERR "meye: unable to power on the camera\n"); |