icnss2: Add change to enable icnss2 driver unloading
Rproc_put should gets called only after rproc subsys shutdown as it decreases refcount. Rproc_put should not be called from icnss_remove as refcount should not be decreased without incrementing it using rproc get_by_phandle api. Change-Id: I26dc83d9750e45726e9e59d33a75d4ff402caa62 Signed-off-by: Sandeep Singh <quic_sandsing@quicinc.com>
This commit is contained in:
@@ -4334,7 +4334,6 @@ static int icnss_remove(struct platform_device *pdev)
|
||||
mbox_free_channel(priv->mbox_chan);
|
||||
unregister_trace_android_vh_rproc_recovery_set(rproc_restart_level_notifier, NULL);
|
||||
complete_all(&priv->smp2p_soc_wake_wait);
|
||||
rproc_put(priv->rproc);
|
||||
icnss_destroy_ramdump_device(priv->m3_dump_phyareg);
|
||||
icnss_destroy_ramdump_device(priv->m3_dump_phydbg);
|
||||
icnss_destroy_ramdump_device(priv->m3_dump_wmac0reg);
|
||||
|
Reference in New Issue
Block a user