]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/common/saa7146_fops.c
V4L/DVB (8786): v4l2: remove the priv field, use dev_get_drvdata instead
[linux-2.6-omap-h63xx.git] / drivers / media / common / saa7146_fops.c
index cf6a817d50594a21f76721f1c386b1b2d798418c..5b34c134aa25147dc118a3cc44a3ba49365166f6 100644 (file)
@@ -533,7 +533,7 @@ int saa7146_register_device(struct video_device **vid, struct saa7146_dev* dev,
        memcpy(vfd, &device_template, sizeof(struct video_device));
        strlcpy(vfd->name, name, sizeof(vfd->name));
        vfd->release = video_device_release;
-       vfd->priv = dev;
+       video_set_drvdata(vfd, dev);
 
        // fixme: -1 should be an insmod parameter *for the extension* (like "video_nr");
        if (video_register_device(vfd, type, -1) < 0) {