Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271867
b: refs/heads/master
c: 69803ec
h: refs/heads/master
i:
  271865: e198109
  271863: c512782
v: v3
  • Loading branch information
Yang Ruirui authored and Mauro Carvalho Chehab committed Sep 21, 2011
1 parent ce09540 commit 6e1f7b6
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 9da9f356dc73c2ae65a15a1c1d6e53142706e96b
refs/heads/master: 69803ecf3a852a8dd0c76a3d2cfcc7aec1e750e2
2 changes: 2 additions & 0 deletions trunk/drivers/media/video/v4l2-device.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ int v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev)
mutex_init(&v4l2_dev->ioctl_lock);
v4l2_prio_init(&v4l2_dev->prio);
kref_init(&v4l2_dev->ref);
get_device(dev);
v4l2_dev->dev = dev;
if (dev == NULL) {
/* If dev == NULL, then name must be filled in by the caller */
Expand Down Expand Up @@ -93,6 +94,7 @@ void v4l2_device_disconnect(struct v4l2_device *v4l2_dev)

if (dev_get_drvdata(v4l2_dev->dev) == v4l2_dev)
dev_set_drvdata(v4l2_dev->dev, NULL);
put_device(v4l2_dev->dev);
v4l2_dev->dev = NULL;
}
EXPORT_SYMBOL_GPL(v4l2_device_disconnect);
Expand Down

0 comments on commit 6e1f7b6

Please sign in to comment.