[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)
commitaa1f4601ed35820a9bd720cc5b1e3fe3c4ff7c5f
tree6fd49a9ee592c57c3850ae1b3d82fca6a03f58dc
parent5d4294b8ddf92092ffad61fe552adeeabb4242bd
[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