summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumara Bhimeswararao Matsa <[email protected]>2026-07-29 16:42:18 +0530
committerPeng Fan <[email protected]>2026-08-11 15:47:25 +0800
commit607d45d1e3b3f0e2b2a2e23799e8b43cd52a28da (patch)
tree000f563a44854b3f304d7c0fefbd85a3ee2bdd2f
parentfc55d1e91094666fd04c8351ad13dac3b0b2ddf9 (diff)
power: pmic: tps65219: fail if regulators node is missing
The TPS65219 bind function continues when the regulators subnode is missing. This causes pmic_bind_children() to be called with an invalid ofnode and permits a misleading message indicating that the subnode was found. Return -ENXIO when the regulators subnode is absent, matching the behavior of other TI PMIC drivers. Signed-off-by: Kumara Bhimeswararao Matsa <[email protected]> Signed-off-by: Peng Fan <[email protected]>
-rw-r--r--drivers/power/pmic/tps65219.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/pmic/tps65219.c b/drivers/power/pmic/tps65219.c
index 0716af027a3..1fecde84795 100644
--- a/drivers/power/pmic/tps65219.c
+++ b/drivers/power/pmic/tps65219.c
@@ -55,6 +55,7 @@ static int tps65219_bind(struct udevice *dev)
if (!ofnode_valid(regulators_node)) {
debug("%s: %s regulators subnode not found!\n", __func__,
dev->name);
+ return -ENXIO;
}
debug("%s: '%s' - found regulators subnode\n", __func__, dev->name);