diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-12-17 19:05:41 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-01 10:34:08 +0300 |
commit | ad5daeb648ecc35233bc827ff19c136c8792f8dc (patch) | |
tree | 1c0851367a6fc89de85aa44f543939929e2fb704 /arch | |
parent | 964f121334cde6c33a9d071f9360f4d41ef56252 (diff) | |
download | linux-ad5daeb648ecc35233bc827ff19c136c8792f8dc.tar.xz |
PM: AVS: qcom-cpr: Fix an error handling path in cpr_probe()
[ Upstream commit 6049aae52392539e505bfb8ccbcff3c26f1d2f0b ]
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: bf6910abf548 ("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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions