[media] s5p-fimc: Prevent race conditions during subdevs registration
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 22 Nov 2012 09:17:19 +0000 (06:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 26 Nov 2012 20:29:31 +0000 (18:29 -0200)
commit97d66c47277fc801bc1ee93559a848057181ea55
tree38e5b038cd68529b9fb1a3bfedf2f2ac4f06a9e6
parent86163adb8125a4ce85e0b23a50be82bd8c0daf95
[media] s5p-fimc: Prevent race conditions during subdevs registration

Make sure when fimc and fimc-lite capture video node is registered
it has valid pipeline_ops assigned to it. Otherwise when a video
node is opened right after is was registered there, might be an
attempt to use ops that are just being assigned, after function
v4l2_device_register_subdev() returns.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/s5p-fimc/fimc-capture.c
drivers/media/platform/s5p-fimc/fimc-lite.c
drivers/media/platform/s5p-fimc/fimc-mdevice.c