mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
qcacld-3.0: Remove FTM checks from memdump init/deinit
The transition to/from FTM happens after the memdump feature is initialized. However, the memdump init/deinit functions bail out if the driver is currently in FTM. This leads to situations were memdump is initialized, but skips deinitialization when the driver is in FTM at the time of unload. Since memdump is always initialized during driver probe (the driver is never in FTM at that time), always deinitialize on driver unload. Change-Id: Ib3555a89f64912403d8858877086ab070ce24e35 CRs-Fixed: 2162241
This commit is contained in:
parent
996bb6f3cd
commit
db0c68806a
1 changed files with 0 additions and 10 deletions
|
|
@ -553,11 +553,6 @@ int memdump_init(void)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) {
|
||||
hdd_err("Not initializing memdump in FTM mode");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
status = memdump_procfs_init();
|
||||
if (status) {
|
||||
hdd_err("Failed to create proc file");
|
||||
|
|
@ -601,11 +596,6 @@ void memdump_deinit(void)
|
|||
return;
|
||||
}
|
||||
|
||||
if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) {
|
||||
hdd_err("Not deinitializing memdump in FTM mode");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!hdd_ctx->memdump_init_done) {
|
||||
hdd_warn("MemDump not initialized");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue