aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/cx88/cx88-dvb.c3
-rw-r--r--drivers/media/video/saa7134/saa7134-dvb.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/cx88/cx88-dvb.c b/drivers/media/video/cx88/cx88-dvb.c
index 8fc929eb47ba..e83d9869e68b 100644
--- a/drivers/media/video/cx88/cx88-dvb.c
+++ b/drivers/media/video/cx88/cx88-dvb.c
@@ -951,7 +951,8 @@ static int cx8802_dvb_remove(struct cx8802_driver *drv)
951 struct cx8802_dev *dev = drv->core->dvbdev; 951 struct cx8802_dev *dev = drv->core->dvbdev;
952 952
953 /* dvb */ 953 /* dvb */
954 videobuf_dvb_unregister(&dev->dvb); 954 if (dev->dvb.frontend)
955 videobuf_dvb_unregister(&dev->dvb);
955 956
956 vp3054_i2c_remove(dev); 957 vp3054_i2c_remove(dev);
957 958
diff --git a/drivers/media/video/saa7134/saa7134-dvb.c b/drivers/media/video/saa7134/saa7134-dvb.c
index 5c84f45ecbe2..e5c3569dd2c8 100644
--- a/drivers/media/video/saa7134/saa7134-dvb.c
+++ b/drivers/media/video/saa7134/saa7134-dvb.c
@@ -1302,7 +1302,8 @@ static int dvb_fini(struct saa7134_dev *dev)
1302 } 1302 }
1303 } 1303 }
1304 } 1304 }
1305 videobuf_dvb_unregister(&dev->dvb); 1305 if (dev->dvb.frontend)
1306 videobuf_dvb_unregister(&dev->dvb);
1306 return 0; 1307 return 0;
1307} 1308}
1308 1309