media: em28xx: Fix misplaced reset of dev->v4l::field_count
authorBen Hutchings <ben@decadent.org.uk>
Thu, 17 Jan 2019 00:22:48 +0000 (00:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Jan 2019 07:10:53 +0000 (08:10 +0100)
commit52befa071a5ec62920e3320c73f550270f948180
tree507c43e87310b2b92469468b15bcb951cabb26c6
parentfe6b4e4083b24dc8a98a3493068a5fb3cde6a865
media: em28xx: Fix misplaced reset of dev->v4l::field_count

The backport of commit afeaade90db4 "media: em28xx: make
v4l2-compliance happier by starting sequence on zero" added a
reset on em28xx_v4l2::field_count to em28xx_ctrl_notify(),
but it should be done in em28xx_start_analog_streaming().

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/usb/em28xx/em28xx-video.c