]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/cpia.c
Merge branch 'for-rmk' of git://git.marvell.com/orion
[linux-2.6-omap-h63xx.git] / drivers / media / video / cpia.c
index 2a81376ef5038dadaf621e2441588bab05eed4c6..a661800b0e69fdefec154a23b69462fc448da2c1 100644 (file)
@@ -3799,9 +3799,7 @@ static const struct file_operations cpia_fops = {
 };
 
 static struct video_device cpia_template = {
-       .owner          = THIS_MODULE,
        .name           = "CPiA Camera",
-       .type           = VID_TYPE_CAPTURE,
        .fops           = &cpia_fops,
 };
 
@@ -3957,7 +3955,7 @@ struct cam_data *cpia_register_camera(struct cpia_camera_ops *ops, void *lowleve
        camera->lowlevel_data = lowlevel;
 
        /* register v4l device */
-       if (video_register_device(&camera->vdev, VFL_TYPE_GRABBER, video_nr) == -1) {
+       if (video_register_device(&camera->vdev, VFL_TYPE_GRABBER, video_nr) < 0) {
                kfree(camera);
                printk(KERN_DEBUG "video_register_device failed\n");
                return NULL;