aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@nokia.com>2007-10-30 04:52:52 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:02:06 -0500
commit2c94a674e059e89252d58da655efa4e798be4d48 (patch)
tree425261eec62e6739765d425e237dbcdaedeac64b /drivers
parent53133afbeeb177487a907fdc2edf18f857497641 (diff)
V4L/DVB (6580): Set slave's master before master's attach call.
V4L: Int if: Set slave's master before attach, remove master argument The master also now gets its own pointer from slave's structure. Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/v4l2-int-device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/v4l2-int-device.c b/drivers/media/video/v4l2-int-device.c
index 8b4ef530a3a8..a545dcaf857f 100644
--- a/drivers/media/video/v4l2-int-device.c
+++ b/drivers/media/video/v4l2-int-device.c
@@ -57,12 +57,12 @@ static void v4l2_int_device_try_attach_all(void)
57 if (!try_module_get(m->module)) 57 if (!try_module_get(m->module))
58 continue; 58 continue;
59 59
60 if (m->u.master->attach(m, s)) { 60 s->u.slave->master = m;
61 if (m->u.master->attach(s)) {
62 s->u.slave->master = NULL;
61 module_put(m->module); 63 module_put(m->module);
62 continue; 64 continue;
63 } 65 }
64
65 s->u.slave->master = m;
66 } 66 }
67 } 67 }
68} 68}