media: atomisp: Remove clearing of config from atomisp_css_uninit()
authorHans de Goede <hdegoede@redhat.com>
Mon, 14 Nov 2022 15:07:18 +0000 (15:07 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 08:22:29 +0000 (08:22 +0000)
atomisp_css_uninit() only runs when all streams are stopped and
atomisp_css_stop() already clears the config, so the clearing
of the config can be dropped from atomisp_css_uninit().

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

index 9d50aad15e09ce4fbe9422fed81c9779a57588c5..96e7f7b58a9568aee2d7dff8825157059f8bdb10 100644 (file)
@@ -864,15 +864,6 @@ int atomisp_css_load_firmware(struct atomisp_device *isp)
 
 void atomisp_css_uninit(struct atomisp_device *isp)
 {
-       struct atomisp_sub_device *asd;
-       unsigned int i;
-
-       for (i = 0; i < isp->num_of_streams; i++) {
-               asd = &isp->asd[i];
-               memset(&asd->params.config, 0, sizeof(asd->params.config));
-               asd->params.css_update_params_needed = false;
-       }
-
        isp->css_initialized = false;
        ia_css_uninit();
 }