diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-12-17 17:05:41 +0100 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-01-10 09:48:13 -0600 |
commit | 6049aae52392539e505bfb8ccbcff3c26f1d2f0b (patch) | |
tree | 1204ebb716618010abf0d15c1c1ca82452e9c7b6 /fs/btrfs/disk-io.c | |
parent | 599d41fb8ea8bd2a99ca9525dd69405020e43dda (diff) |
PM: AVS: qcom-cpr: Fix an error handling path in cpr_probe()
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
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions