WSL2-Linux-Kernel/drivers/soc/qcom
Christophe JAILLET bab87524f6 PM: AVS: qcom-cpr: Fix an error handling path in cpr_probe()
[ Upstream commit 6049aae523 ]

If an error occurs after a successful pm_genpd_init() call, it should be
undone by a corresponding pm_genpd_remove().

Add the missing call in the error handling path, as already done in the
remove function.

Fixes: bf6910abf5 ("power: avs: Add support for CPR (Core Power Reduction)")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/0f520597dbad89ab99c217c8986912fa53eaf5f9.1671293108.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-01 08:27:06 +01:00
..
Kconfig
Makefile
apr.c
cmd-db.c
cpr.c
kryo-l2-accessors.c
llcc-qcom.c
mdt_loader.c
ocmem.c
pdr_interface.c
pdr_internal.h
qcom-geni-se.c
qcom_aoss.c
qcom_gsbi.c
qmi_encdec.c
qmi_interface.c
rmtfs_mem.c
rpmh-internal.h
rpmh-rsc.c
rpmh.c
rpmhpd.c
rpmpd.c
smd-rpm.c
smem.c
smem_state.c
smp2p.c
smsm.c
socinfo.c
trace-rpmh.h
wcnss_ctrl.c