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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user