aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88/cx88-blackbird.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/cx88/cx88-blackbird.c')
-rw-r--r--drivers/media/video/cx88/cx88-blackbird.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c
index 9f02715b4e15..5186f87b4ece 100644
--- a/drivers/media/video/cx88/cx88-blackbird.c
+++ b/drivers/media/video/cx88/cx88-blackbird.c
@@ -1276,7 +1276,7 @@ static int cx8802_blackbird_advise_release(struct cx8802_driver *drv)
1276static void blackbird_unregister_video(struct cx8802_dev *dev) 1276static void blackbird_unregister_video(struct cx8802_dev *dev)
1277{ 1277{
1278 if (dev->mpeg_dev) { 1278 if (dev->mpeg_dev) {
1279 if (-1 != dev->mpeg_dev->minor) 1279 if (video_is_registered(dev->mpeg_dev))
1280 video_unregister_device(dev->mpeg_dev); 1280 video_unregister_device(dev->mpeg_dev);
1281 else 1281 else
1282 video_device_release(dev->mpeg_dev); 1282 video_device_release(dev->mpeg_dev);