diff options
Diffstat (limited to 'drivers/media/video/ov511.c')
-rw-r--r-- | drivers/media/video/ov511.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/ov511.c b/drivers/media/video/ov511.c index 0bc2cf573c76..b636160fd510 100644 --- a/drivers/media/video/ov511.c +++ b/drivers/media/video/ov511.c | |||
@@ -5884,7 +5884,7 @@ ov51x_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
5884 | 5884 | ||
5885 | error: | 5885 | error: |
5886 | if (ov->vdev) { | 5886 | if (ov->vdev) { |
5887 | if (-1 == ov->vdev->minor) | 5887 | if (!video_is_registered(ov->vdev)) |
5888 | video_device_release(ov->vdev); | 5888 | video_device_release(ov->vdev); |
5889 | else | 5889 | else |
5890 | video_unregister_device(ov->vdev); | 5890 | video_unregister_device(ov->vdev); |