Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58717ee4 authored by Govind Singh's avatar Govind Singh
Browse files

ath10k: Move logging prior to ath10k core destroy



ath10k core destroy frees the debug references and
this is leading to crash when ATH10K_DBG_SNOC mask is
defined.

Fix this by moving logs to prior ath10k core destroy.

Change-Id: If4fd96fdfd9faaf19480b6d523c501747f56d40e
Signed-off-by: default avatarGovind Singh <govinds@codeaurora.org>
parent c49ca895
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1329,6 +1329,8 @@ static int ath10k_snoc_remove(struct platform_device *pdev)
	if (!ar_snoc)
		return -EINVAL;

	ath10k_dbg(ar, ATH10K_DBG_SNOC, "%s:WCN3990 removed\n", __func__);

	ath10k_core_unregister(ar);
	ath10k_snoc_pdr_unregister_notifier(ar);
	ath10k_snoc_modem_ssr_unregister_notifier(ar);
@@ -1338,8 +1340,6 @@ static int ath10k_snoc_remove(struct platform_device *pdev)
	ath10k_snoc_stop_qmi_service(ar);
	ath10k_core_destroy(ar);

	ath10k_dbg(ar, ATH10K_DBG_SNOC, "%s:WCN3990 removed\n", __func__);

	return 0;
}