Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202090
b: refs/heads/master
c: 1bb6419
h: refs/heads/master
v: v3
  • Loading branch information
Anatolij Gustschin authored and Mauro Carvalho Chehab committed Aug 2, 2010
1 parent ad38f3c commit 5805e58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2030c0325aa3d430b7bb9ec99da0295f49d183ef
refs/heads/master: 1bb6419433433e845f7bc47651ad246b2e65c6fa
6 changes: 3 additions & 3 deletions trunk/drivers/media/video/v4l2-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ static int __video_register_device(struct video_device *vdev, int type, int nr,
int minor_offset = 0;
int minor_cnt = VIDEO_NUM_DEVICES;
const char *name_base;
void *priv = video_get_drvdata(vdev);
void *priv = vdev->dev.p;

/* A minor value of -1 marks this video device as never
having been registered */
Expand Down Expand Up @@ -536,9 +536,9 @@ static int __video_register_device(struct video_device *vdev, int type, int nr,

/* Part 4: register the device with sysfs */
memset(&vdev->dev, 0, sizeof(vdev->dev));
/* The memset above cleared the device's drvdata, so
/* The memset above cleared the device's device_private, so
put back the copy we made earlier. */
video_set_drvdata(vdev, priv);
vdev->dev.p = priv;
vdev->dev.class = &video_class;
vdev->dev.devt = MKDEV(VIDEO_MAJOR, vdev->minor);
if (vdev->parent)
Expand Down

0 comments on commit 5805e58

Please sign in to comment.