Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76400
b: refs/heads/master
c: 2c94a67
h: refs/heads/master
v: v3
  • Loading branch information
Sakari Ailus authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 216b6c4 commit da5e4e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 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: 53133afbeeb177487a907fdc2edf18f857497641
refs/heads/master: 2c94a674e059e89252d58da655efa4e798be4d48
6 changes: 3 additions & 3 deletions trunk/drivers/media/video/v4l2-int-device.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ static void v4l2_int_device_try_attach_all(void)
if (!try_module_get(m->module))
continue;

if (m->u.master->attach(m, s)) {
s->u.slave->master = m;
if (m->u.master->attach(s)) {
s->u.slave->master = NULL;
module_put(m->module);
continue;
}

s->u.slave->master = m;
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions trunk/include/media/v4l2-int-device.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ enum v4l2_int_type {
struct v4l2_int_device;

struct v4l2_int_master {
int (*attach)(struct v4l2_int_device *master,
struct v4l2_int_device *slave);
void (*detach)(struct v4l2_int_device *master);
int (*attach)(struct v4l2_int_device *slave);
void (*detach)(struct v4l2_int_device *slave);
};

typedef int (v4l2_int_ioctl_func)(struct v4l2_int_device *);
Expand Down

0 comments on commit da5e4e3

Please sign in to comment.