media: atomisp: Move atomisp_streaming_count() check into __atomisp_css_recover()
authorHans de Goede <hdegoede@redhat.com>
Sat, 3 Sep 2022 21:36:01 +0000 (23:36 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 08:08:00 +0000 (10:08 +0200)
commit0ecc5236d1cb0015c00981d253bb8edee36770bb
tree6d66b960c64c960de48551abfd732fae96721470
parent93d3fb35aa10a8417f923871c7c58c9ad81d7a08
media: atomisp: Move atomisp_streaming_count() check into __atomisp_css_recover()

Both callers of __atomisp_css_recover() check atomisp_streaming_count()
first, move the check into __atomisp_css_recover().

And __atomisp_css_recover() already calls lockdep_assert_held(&isp->mutex),
so drop that from atomisp_css_flush().

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_cmd.c