From b9b520c47bd314288215493d1268ef77f09cbd4c Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Fri, 2 Jan 2004 18:15:45 +0000 Subject: - fix release of vbi device with DVB-C cards --- linux/drivers/media/dvb/ttpci/av7110.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'linux/drivers/media') diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c index 1dd270b43..15cb4bcf9 100644 --- a/linux/drivers/media/dvb/ttpci/av7110.c +++ b/linux/drivers/media/dvb/ttpci/av7110.c @@ -4838,9 +4838,10 @@ static int av7110_attach (struct saa7146_dev* dev, struct saa7146_pci_extension_ if (0 != av7110->has_analog_tuner) { if( 0 != saa7146_register_device(&av7110->vbi_dev, dev, "av7110", VFL_TYPE_VBI)) { ERR(("cannot register vbi v4l2 device. skipping.\n")); + } else { + /* we use this to remember that this dvb-c card can do vbi */ + av7110->has_analog_tuner = 2; } - /* we use this to remember that this dvb-c card cannot do vbi */ - av7110->has_analog_tuner = 2; } printk(KERN_INFO "av7110: found av7110-%d.\n",av7110_num); -- cgit v1.2.3