[media] m5mols: Fix bug in stream on handler
authorAndrzej Hajda <a.hajda@samsung.com>
Wed, 27 Feb 2013 11:21:07 +0000 (08:21 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Mar 2013 21:25:09 +0000 (18:25 -0300)
commit6ba4d05e84eeb450011f7f3514ec8556d3b46743
tree918be49e4b30a4f7428208540720654569da0736
parent8c6ecdd7ce11e737eeffbd78fd6a9d4c47d0b26d
[media] m5mols: Fix bug in stream on handler

Due to improper condition check streaming start for some pixel
formats was prevent and the s_stream just reatuned -EINVAL.
This fixes regression introduced in commit 5565a2ad47cdd8e697
[media] m5mols: Protect driver data with a mutex.

Signed-off-by: Andrzej Hajda <a.hajda@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/i2c/m5mols/m5mols_core.c