]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/media/video/cx23885/cx23885-417.c
V4L/DVB (13553): v4l: Use the video_is_registered function in device drivers
[net-next-2.6.git] / drivers / media / video / cx23885 / cx23885-417.c
index 8084e13dd103bdd6026b43b2f5b74acc0fb6e006..a7bfe7c3a447c5cda2fcd5a3f30dd0d0c50e9051 100644 (file)
@@ -1746,7 +1746,7 @@ void cx23885_417_unregister(struct cx23885_dev *dev)
        dprintk(1, "%s()\n", __func__);
 
        if (dev->v4l_device) {
-               if (-1 != dev->v4l_device->minor)
+               if (video_is_registered(dev->v4l_device))
                        video_unregister_device(dev->v4l_device);
                else
                        video_device_release(dev->v4l_device);