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/video/s2255drv.c | |
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/video/s2255drv.c')
-rw-r--r-- | drivers/media/video/s2255drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/s2255drv.c b/drivers/media/video/s2255drv.c index af19bb346ef1..ea40f4c8b33e 100644 --- a/drivers/media/video/s2255drv.c +++ b/drivers/media/video/s2255drv.c | |||
@@ -1800,7 +1800,7 @@ static int s2255_probe_v4l(struct s2255_dev *dev) | |||
1800 | ret = video_register_device(dev->vdev[i], | 1800 | ret = video_register_device(dev->vdev[i], |
1801 | VFL_TYPE_GRABBER, | 1801 | VFL_TYPE_GRABBER, |
1802 | cur_nr + i); | 1802 | cur_nr + i); |
1803 | dev->vdev[i]->priv = dev; | 1803 | video_set_drvdata(dev->vdev[i], dev); |
1804 | 1804 | ||
1805 | if (ret != 0) { | 1805 | if (ret != 0) { |
1806 | dev_err(&dev->udev->dev, | 1806 | dev_err(&dev->udev->dev, |