media: bcm2835-unicam: Do not stop streaming in unicam_release
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 29 Apr 2020 21:05:09 +0000 (22:05 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:54 +0000 (16:33 +0100)
commit6212ceba86a78d1aa54e98c6478927a7fd06212d
tree09668855829f3a5945708b478d1e821b87d6434a
parentc83e7c036eb8472423ad5e99315ff5261e2b1d85
media: bcm2835-unicam: Do not stop streaming in unicam_release

unicam_release calls _vb2_fop_release, which will call stop_streaming
if that particular node was streaming. Calling it unconditionally (as
the code was) means that if a second handle was opened eg to alter
a setting, on closing that connection it also stopped Unicam.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/media/platform/bcm2835/bcm2835-unicam.c