Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113870
b: refs/heads/master
c: 9d95af9
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent b326ac2 commit 356daf3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c170ecf434bceb0e188b14a6deb3bfa3ec9ef699
refs/heads/master: 9d95af9d09d537d287eea9914c0d1ca4cfa0ec7f
4 changes: 4 additions & 0 deletions trunk/drivers/media/video/v4l2-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ int video_register_device_index(struct video_device *vfd, int type, int nr,
int end;
int ret;
char *name_base;
void *priv = video_get_drvdata(vfd);

/* the release callback MUST be present */
BUG_ON(!vfd->release);
Expand Down Expand Up @@ -295,6 +296,9 @@ int video_register_device_index(struct video_device *vfd, int type, int nr,

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

0 comments on commit 356daf3

Please sign in to comment.