msm: camera: common: Fix failures in v4l2 unregister during error

Missing video unregister was causing list delete corruption.
Also, there were double free errors in Sync and CRM driver. Fix
v4l2 issues by adding the missing unregister calls and changing
release callback to empty, because we are freeing it during
cleanup. Improve logging during bind/unbind to better reflect what
is happening.

CRs-Fixed: 2584631
Change-Id: Idc5db655d22df54e8bdb470d29896e10f6987796
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
Cette révision appartient à :
Mukund Madhusudan Atre
2020-02-17 00:29:44 -08:00
Parent 3a756cef36
révision 0a649b3063
10 fichiers modifiés avec 89 ajouts et 39 suppressions

Voir le fichier

@@ -86,7 +86,7 @@ static const struct camera_submodule_component camera_isp[] = {
};
static const struct camera_submodule_component camera_tfe[] = {
#if IS_ENABLED(CONFIG_SPECTRA_TFE)
#ifdef CONFIG_SPECTRA_TFE
{&cam_top_tpg_init_module, &cam_top_tpg_exit_module},
{&cam_tfe_init_module, &cam_tfe_exit_module},
{&cam_tfe_csid530_init_module, &cam_tfe_csid530_exit_module},
@@ -381,7 +381,7 @@ static int camera_init(void)
}
}
CAM_INFO(CAM_UTIL, "Spectra camera driver initialized!");
CAM_INFO(CAM_UTIL, "Spectra camera driver initcalls done");
end_init:
return rc;