aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/video/w9966.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-09-04 16:24:02 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-09-04 16:24:02 -0300
commitdb0a2901a32c44510d7d429358d017143a649a70 (patch)
tree4e4e41cf2e27aa4940f9c0711ca2a3bf7557a805 /drivers/media/video/w9966.c
parentd210baf53b699fc61aa891c177b71d7082d3b957 (diff)
parent4cce1655b26a4df1e619b2aa3d2eea1b7a6e906c (diff)
Merge branch 'fixes_stg' of ../git_old into fixes
Diffstat (limited to 'drivers/media/video/w9966.c')
-rw-r--r--drivers/media/video/w9966.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/w9966.c b/drivers/media/video/w9966.c
index 9402f40095b..2ff00bc5ad6 100644
--- a/drivers/media/video/w9966.c
+++ b/drivers/media/video/w9966.c
@@ -334,7 +334,7 @@ static int w9966_init(struct w9966_dev* cam, struct parport* port)
memcpy(&cam->vdev, &w9966_template, sizeof(struct video_device));
cam->vdev.priv = cam;
- if (video_register_device(&cam->vdev, VFL_TYPE_GRABBER, video_nr) == -1)
+ if (video_register_device(&cam->vdev, VFL_TYPE_GRABBER, video_nr) < 0)
return -1;
w9966_setState(cam, W9966_STATE_VDEV, W9966_STATE_VDEV);