commit | 855bfff9d623e7aff6556bfb6831d324dec8d96a | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Thu May 20 19:18:11 2021 +0800 |
committer | Mark Brown <broonie@kernel.org> | Thu May 20 17:57:23 2021 +0100 |
tree | 80b077c53bd4812f5881ebee1c5eb8e5281a82e9 | |
parent | 687c9e3b1a81d43b233482f781bd4e20561bc390 [diff] |
regulator: fixed: Ensure enable_counter is correct if reg_domain_disable fails dev_pm_genpd_set_performance_state() may fail, so had better to check it's return value before decreasing priv->enable_counter. Fixes: bf3a28cf4241 ("regulator: fixed: support using power domain for enable/disable") Signed-off-by: Axel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210520111811.1806293-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>