Skip to content

Commit

Permalink
V4L/DVB (6792): Fix VBI support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Jan 25, 2008
1 parent bfb12e3 commit a962239
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 3 additions & 1 deletion drivers/media/video/saa7134/saa7134-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 0 additions & 8 deletions drivers/media/video/saa7134/saa7134-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a962239

Please sign in to comment.