qcacmn: Deregister HIF ext groups on rmmod

- Deregister & free the hif ext ctx when detaching DP interrupts.
- Unregister the hotcpu_notifier during rmmod.

Change-Id: Icbd3c6cee70b6b224059a4b301b9840485a96d11
CRs-Fixed: 2086729
This commit is contained in:
psimha
2017-08-02 17:27:14 -07:00
committed by snandini
parent 579c02f570
commit a079b8c678
4 changed files with 53 additions and 2 deletions

View File

@@ -1146,9 +1146,14 @@ static int hnc_hotplug_hook(struct hif_softc *hif_sc, int install)
= hnc_cpu_notify_cb;
rc = register_hotcpu_notifier(
&hif_sc->napi_data.hnc_cpu_notifier);
if (rc == 0)
hif_sc->napi_data.cpu_notifier_registered = true;
} else {
unregister_hotcpu_notifier(
&hif_sc->napi_data.hnc_cpu_notifier);
if (hif_sc->napi_data.cpu_notifier_registered == true) {
unregister_hotcpu_notifier(
&hif_sc->napi_data.hnc_cpu_notifier);
hif_sc->napi_data.cpu_notifier_registered = false;
}
}
NAPI_DEBUG("<--%s()[%d]", __func__, rc);