aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/dvb/ttpci/budget-av.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/dvb/ttpci/budget-av.c b/drivers/media/dvb/ttpci/budget-av.c
index 89ab4b59155c..3035b224c7a3 100644
--- a/drivers/media/dvb/ttpci/budget-av.c
+++ b/drivers/media/dvb/ttpci/budget-av.c
@@ -1089,6 +1089,8 @@ static int budget_av_detach(struct saa7146_dev *dev)
1089 msleep(200); 1089 msleep(200);
1090 1090
1091 saa7146_unregister_device(&budget_av->vd, dev); 1091 saa7146_unregister_device(&budget_av->vd, dev);
1092
1093 saa7146_vv_release(dev);
1092 } 1094 }
1093 1095
1094 if (budget_av->budget.ci_present) 1096 if (budget_av->budget.ci_present)
@@ -1145,6 +1147,7 @@ static int budget_av_attach(struct saa7146_dev *dev, struct saa7146_pci_extensio
1145 if ((err = saa7146_register_device(&budget_av->vd, dev, "knc1", VFL_TYPE_GRABBER))) { 1147 if ((err = saa7146_register_device(&budget_av->vd, dev, "knc1", VFL_TYPE_GRABBER))) {
1146 /* fixme: proper cleanup here */ 1148 /* fixme: proper cleanup here */
1147 ERR(("cannot register capture v4l2 device.\n")); 1149 ERR(("cannot register capture v4l2 device.\n"));
1150 saa7146_vv_release(dev);
1148 return err; 1151 return err;
1149 } 1152 }
1150 1153