]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: don't disable regulator if is_enabled return error.
authorPi-Hsun Shih <pihsun@chromium.org>
Fri, 6 Nov 2020 06:48:17 +0000 (14:48 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 10 Nov 2020 17:27:42 +0000 (17:27 +0000)
commitc54d1ac550dc8f869bf0fd4662c04a85a533f7de
treedfec6e6cf41e9f64bffe6b07286c496757acfc68
parent5b4366b4b4e07191a0a8967eb87d5a45da22971c
regulator: core: don't disable regulator if is_enabled return error.

In regulator_late_cleanup when is_enabled failed, don't try to disable
the regulator since it would likely to fail too and causing confusing
error messages.

Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org>
Link: https://lore.kernel.org/r/20201106064817.3290927-1-pihsun@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c