]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regulator: core: remove dead code in regulator_resolve_supply()
authorAndré Draszik <andre.draszik@linaro.org>
Fri, 9 Jan 2026 08:38:41 +0000 (08:38 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 9 Jan 2026 13:37:58 +0000 (13:37 +0000)
commitbdbdc4b398254597c9b6ac279f336750996bc0a6
treebef0eb01ab92c1e61fb6dd5ba43bd9193448605e
parent4f3323b752bfcc185c98ce4fb841cca8b700a7c0
regulator: core: remove dead code in regulator_resolve_supply()

Since commit 98e48cd9283d ("regulator: core: resolve supply for
boot-on/always-on regulators") we require that a regulator's supply has
been resolved before enabling the regulator. Furthermore,
regulator_get() also fails if the supply hasn't been resolved yet
(preventing consumers from enabling a regulator without its supply
known). In combination this means that regulator_resolve_supply() now
always runs before the regulator has been enabled via
set_machine_constraints().

The code here was meant to run after enabling the regulator in case the
supply hadn't been resolved at that time and can therefore never
execute anymore since that commit.

Remove it.

No functional change intended.

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://patch.msgid.link/20260109-regulators-defer-v2-5-1a25dc968e60@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c