media: atomisp: Move atomisp_stop_streaming() above atomisp_start_streaming()
authorHans de Goede <hansg@kernel.org>
Fri, 4 Jul 2025 09:20:30 +0000 (11:20 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 8 Jul 2025 06:43:27 +0000 (08:43 +0200)
commit0a345630c980b6a274d9d4b1e9fd833bfc1a6959
tree72b032b9b7917a7f8fe2bc33322246c635d2302d
parent5701c792c7b9348adca640f24bb01d69ba657e03
media: atomisp: Move atomisp_stop_streaming() above atomisp_start_streaming()

Move atomisp_stop_streaming() above atomisp_start_streaming(), this is
a preparation patch for making atomisp_start_streaming() properly cleanup
if starting the sensor stream fails.

No functional change, only moving a block of code up.

Signed-off-by: Hans de Goede <hansg@kernel.org>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20250505210008.152659-2-hdegoede@redhat.com
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_ioctl.c