V4L/DVB (6792): Fix VBI support
authorMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 11 Dec 2007 15:05:06 +0000 (12:05 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:03:30 +0000 (19:03 -0200)
VBI were broken, since there weren't any function handlers for it. This patch
fixes it, by removing the vbi_template, using, instead video_template.

This also saves some space at the data segment.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/saa7134/saa7134-core.c
drivers/media/video/saa7134/saa7134-video.c

index 92c48ee1591ba7338027efcdf4a0647c9b16d084..52baa4f7f7dda1d235431b867000366bf60b9625 100644 (file)
@@ -1053,7 +1053,9 @@ static int __devinit saa7134_initdev(struct pci_dev *pci_dev,
        printk(KERN_INFO "%s: registered device video%d [v4l2]\n",
               dev->name,dev->video_dev->minor & 0x1f);
 
-       dev->vbi_dev = vdev_init(dev,&saa7134_vbi_template,"vbi");
+       dev->vbi_dev = vdev_init(dev, &saa7134_video_template, "vbi");
+       dev->vbi_dev->type = VID_TYPE_TUNER | VID_TYPE_TELETEXT;
+
        err = video_register_device(dev->vbi_dev,VFL_TYPE_VBI,
                                    vbi_nr[dev->nr]);
        if (err < 0)
index 6f9f9dbdfdd15a4854a365bf4578bb76c090f13c..6a29b75beaa69cde8e0d63f11be08b5423303f1e 100644 (file)
@@ -2406,14 +2406,6 @@ struct video_device saa7134_video_template =
        .current_norm                   = V4L2_STD_PAL,
 };
 
-struct video_device saa7134_vbi_template =
-{
-       .name          = "saa7134-vbi",
-       .type          = VID_TYPE_TUNER|VID_TYPE_TELETEXT,
-       .fops          = &video_fops,
-       .minor         = -1,
-};
-
 struct video_device saa7134_radio_template =
 {
        .name                   = "saa7134-radio",