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/stk-webcam.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/stk-webcam.c')
-rw-r--r-- | drivers/media/video/stk-webcam.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/stk-webcam.c b/drivers/media/video/stk-webcam.c index 6b1ef5dc562c..8dda5680094d 100644 --- a/drivers/media/video/stk-webcam.c +++ b/drivers/media/video/stk-webcam.c | |||
@@ -72,7 +72,7 @@ static void stk_camera_cleanup(struct kref *kref) | |||
72 | STK_INFO("Syntek USB2.0 Camera release resources" | 72 | STK_INFO("Syntek USB2.0 Camera release resources" |
73 | " video device /dev/video%d\n", dev->vdev.minor); | 73 | " video device /dev/video%d\n", dev->vdev.minor); |
74 | video_unregister_device(&dev->vdev); | 74 | video_unregister_device(&dev->vdev); |
75 | dev->vdev.priv = NULL; | 75 | video_set_drvdata(&dev->vdev, NULL); |
76 | 76 | ||
77 | if (dev->sio_bufs != NULL || dev->isobufs != NULL) | 77 | if (dev->sio_bufs != NULL || dev->isobufs != NULL) |
78 | STK_ERROR("We are leaking memory\n"); | 78 | STK_ERROR("We are leaking memory\n"); |
@@ -1379,7 +1379,7 @@ static int stk_register_video_device(struct stk_camera *dev) | |||
1379 | dev->vdev = stk_v4l_data; | 1379 | dev->vdev = stk_v4l_data; |
1380 | dev->vdev.debug = debug; | 1380 | dev->vdev.debug = debug; |
1381 | dev->vdev.parent = &dev->interface->dev; | 1381 | dev->vdev.parent = &dev->interface->dev; |
1382 | dev->vdev.priv = dev; | 1382 | video_set_drvdata(&dev->vdev, dev); |
1383 | err = video_register_device(&dev->vdev, VFL_TYPE_GRABBER, -1); | 1383 | err = video_register_device(&dev->vdev, VFL_TYPE_GRABBER, -1); |
1384 | if (err) | 1384 | if (err) |
1385 | STK_ERROR("v4l registration failed\n"); | 1385 | STK_ERROR("v4l registration failed\n"); |