aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/omap24xxcam.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/omap24xxcam.c')
-rw-r--r--drivers/media/video/omap24xxcam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/omap24xxcam.c b/drivers/media/video/omap24xxcam.c
index e2f137b0daeb..34eb96594333 100644
--- a/drivers/media/video/omap24xxcam.c
+++ b/drivers/media/video/omap24xxcam.c
@@ -1696,7 +1696,7 @@ static void omap24xxcam_device_unregister(struct v4l2_int_device *s)
1696 omap24xxcam_sensor_exit(cam); 1696 omap24xxcam_sensor_exit(cam);
1697 1697
1698 if (cam->vfd) { 1698 if (cam->vfd) {
1699 if (cam->vfd->minor == -1) { 1699 if (!video_is_registered(cam->vfd)) {
1700 /* 1700 /*
1701 * The device was never registered, so release the 1701 * The device was never registered, so release the
1702 * video_device struct directly. 1702 * video_device struct directly.