diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-23 06:24:07 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:36:54 -0400 |
commit | 601e9444f249d219009ec05674268d90f6f1cdcb (patch) | |
tree | 42d58813872e340e03a40b74922ea89dfdcf0c55 /drivers/media/common | |
parent | e138c592b50370621653fd962b2bc3f4e25dfe78 (diff) |
V4L/DVB (8786): v4l2: remove the priv field, use dev_get_drvdata instead
Remove the priv field and let video_get/set_drvdata use dev_get_drvdata
and dev_set_drvdata instead.
Convert all drivers that still used priv directly.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common')
-rw-r--r-- | drivers/media/common/saa7146_fops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/common/saa7146_fops.c b/drivers/media/common/saa7146_fops.c index cf6a817d5059..5b34c134aa25 100644 --- a/drivers/media/common/saa7146_fops.c +++ b/drivers/media/common/saa7146_fops.c | |||
@@ -533,7 +533,7 @@ int saa7146_register_device(struct video_device **vid, struct saa7146_dev* dev, | |||
533 | memcpy(vfd, &device_template, sizeof(struct video_device)); | 533 | memcpy(vfd, &device_template, sizeof(struct video_device)); |
534 | strlcpy(vfd->name, name, sizeof(vfd->name)); | 534 | strlcpy(vfd->name, name, sizeof(vfd->name)); |
535 | vfd->release = video_device_release; | 535 | vfd->release = video_device_release; |
536 | vfd->priv = dev; | 536 | video_set_drvdata(vfd, dev); |
537 | 537 | ||
538 | // fixme: -1 should be an insmod parameter *for the extension* (like "video_nr"); | 538 | // fixme: -1 should be an insmod parameter *for the extension* (like "video_nr"); |
539 | if (video_register_device(vfd, type, -1) < 0) { | 539 | if (video_register_device(vfd, type, -1) < 0) { |