diff options
author | Johan Hovold <johan+linaro@kernel.org> | 2022-09-29 17:58:16 +0200 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2022-09-29 11:34:46 -0500 |
commit | eab4c1ebdd657957bf7ae66ffb8849b462db78b3 (patch) | |
tree | c2503ae7f3c57dc5114f643333b10e59e7789510 /drivers/mtd/maps/pci.c | |
parent | 6632a6adae86265ca79cefc0e48e4a672a1108df (diff) | |
download | linux-eab4c1ebdd657957bf7ae66ffb8849b462db78b3.tar.gz linux-eab4c1ebdd657957bf7ae66ffb8849b462db78b3.tar.bz2 linux-eab4c1ebdd657957bf7ae66ffb8849b462db78b3.zip |
clk: qcom: gdsc: add missing error handling
Since commit 7eb231c337e0 ("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
Diffstat (limited to 'drivers/mtd/maps/pci.c')
0 files changed, 0 insertions, 0 deletions