msm: eva: Updated error handling in case of core init fails.

Removed release and disable subcache in case of core init fails,
as subcache deinit is done as part of load FW failure error handling
and also as part of unload FW.

Change-Id: Ic1a6bf75eacaa8a4ccb95a7155e720932a372a58
Signed-off-by: Palak Joshi <quic_palakash@quicinc.com>
This commit is contained in:
Palak Joshi
2023-03-16 18:22:13 +05:30
committed by Gerrit - the friendly Code Review server
parent 5d31120817
commit a33d13c191

View File

@@ -2249,11 +2249,9 @@ err_core_init:
msm_cvp_mmrm_deregister(dev); msm_cvp_mmrm_deregister(dev);
} }
err_load_fw: err_load_fw:
__hwfence_regs_unmap(dev);
err_no_mem: err_no_mem:
dprintk(CVP_ERR, "Core init failed\n"); dprintk(CVP_ERR, "Core init failed\n");
__release_subcaches(device);
__disable_subcaches(device);
__hwfence_regs_unmap(dev);
mutex_unlock(&dev->lock); mutex_unlock(&dev->lock);
pm_relax(dev->res->pdev->dev.parent); pm_relax(dev->res->pdev->dev.parent);
return rc; return rc;