V4L/DVB (5189): Budget-av: Call saa7146_vv_release on exit
authorMarco Schluessler <marco@lordzodiac.de>
Sat, 3 Feb 2007 17:47:14 +0000 (14:47 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 21 Feb 2007 15:35:15 +0000 (13:35 -0200)
Call saa7146_vv_release on exit.

Signed-off-by: Marco Schluessler <marco@lordzodiac.de>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/ttpci/budget-av.c

index 89ab4b59155cde27035bcb4ce4d8f3a887c8eac7..3035b224c7a32efafa249a1c27ed46e8e605c818 100644 (file)
@@ -1089,6 +1089,8 @@ static int budget_av_detach(struct saa7146_dev *dev)
                msleep(200);
 
                saa7146_unregister_device(&budget_av->vd, dev);
+
+               saa7146_vv_release(dev);
        }
 
        if (budget_av->budget.ci_present)
@@ -1145,6 +1147,7 @@ static int budget_av_attach(struct saa7146_dev *dev, struct saa7146_pci_extensio
                if ((err = saa7146_register_device(&budget_av->vd, dev, "knc1", VFL_TYPE_GRABBER))) {
                        /* fixme: proper cleanup here */
                        ERR(("cannot register capture v4l2 device.\n"));
+                       saa7146_vv_release(dev);
                        return err;
                }