[media] m5mols: Don't ignore v4l2_ctrl_handler_setup() return value
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 12 Dec 2011 18:45:56 +0000 (15:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 30 Dec 2011 16:38:06 +0000 (14:38 -0200)
commit5d4294b8ddf92092ffad61fe552adeeabb4242bd
tree670015258ae031f53b2422ef963337009a1ef7d1
parentd5048c9a289485f65d108ede183dd3f02f1cd408
[media] m5mols: Don't ignore v4l2_ctrl_handler_setup() return value

v4l2_ctrl_handler_setup() may fail so check its return value when
restoring controls after device is powered on. While at it simplify
the m5mols_restore_function() a bit.

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.h
drivers/media/video/m5mols/m5mols_capture.c
drivers/media/video/m5mols/m5mols_core.c