Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clk: qcom: gdsc: add missing error handling
[ Upstream commit eab4c1e ] Since commit 7eb231c ("PM / Domains: Convert pm_genpd_init() to return an error code") pm_genpd_init() can return an error which the caller must handle. The current error handling was also incomplete as the runtime PM and regulator use counts were not balanced in all error paths. Add the missing error handling to the GDSC initialisation to avoid continuing as if nothing happened on errors. Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20220929155816.17425-1-johan+linaro@kernel.org Stable-dep-of: 4cc47e8 ("clk: qcom: gdsc: Remove direct runtime PM calls") Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information