media: stk1160: Set the vb2_queue lock before calling vb2_queue_init
authorEzequiel Garcia <ezequiel@collabora.com>
Fri, 15 Jun 2018 19:07:32 +0000 (15:07 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 4 Jul 2018 12:03:43 +0000 (08:03 -0400)
commitde3e581f31626a9e5697ea1581967729fcffdd1d
tree598f861c76bf41afc8751268fbd482b30f5e0b23
parent1d120649a81e5fc71151cbe8d6d82c58f7777160
media: stk1160: Set the vb2_queue lock before calling vb2_queue_init

The vb2_queue will soon be mandatory. The videobuf2 core
will throw a verbose warning if it's not set.

The stk1160 driver is setting the queue lock, but after
the vb2_queue_init call. Avoid the warning by setting
the lock before the queue initialization.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/stk1160/stk1160-v4l.c