]> git.baikalelectronics.ru Git - kernel.git/commit
[media] m5mols: Move the control handler initialization to probe()
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Sat, 3 Dec 2011 17:53:30 +0000 (14:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 30 Dec 2011 16:38:39 +0000 (14:38 -0200)
commit525c49406c8ea7a3c6b50434dac0ee97d26c2ec7
tree6fd49a9ee592c57c3850ae1b3d82fca6a03f58dc
parentcf0235a070247af11cf2eb2652e2b15243c80757
[media] m5mols: Move the control handler initialization to probe()

This is prerequisite for enabling the sub-device node.

The control handler is now initialized in driver's probe callback
in order to allow the user space access controls before the device
power is enabled with s_power. This is needed due to s_power being
currently called only by the host driver.

It also adds the subdev internal operations, only open() for now
for the TRY format initialization.

Acked-by: HeungJun Kim <riverful.kim@samsung.com>
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/video/m5mols/m5mols_core.c