summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/pfuze100-regulator.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-05-17 16:59:05 +0100
committerMark Brown <broonie@kernel.org>2022-05-17 16:59:05 +0100
commita5b8e4a5ceec0ab6453176bc7f5eceafa78bf8a9 (patch)
tree56e87c40446742857c7444d8a500c191639cdaa4 /drivers/regulator/pfuze100-regulator.c
parentb11b3d21a94d66bc05d1142e0b210bfa316c62be (diff)
parent68d6c8476fd4f448e70e0ab31ff972838ac41dae (diff)
downloadlinux-a5b8e4a5ceec0ab6453176bc7f5eceafa78bf8a9.tar.bz2
Merge remote-tracking branch 'regulator/for-5.19' into regulator-next
Diffstat (limited to 'drivers/regulator/pfuze100-regulator.c')
-rw-r--r--drivers/regulator/pfuze100-regulator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c
index d60d7d1b7fa2..aa55cfca9e40 100644
--- a/drivers/regulator/pfuze100-regulator.c
+++ b/drivers/regulator/pfuze100-regulator.c
@@ -521,6 +521,7 @@ static int pfuze_parse_regulators_dt(struct pfuze_chip *chip)
parent = of_get_child_by_name(np, "regulators");
if (!parent) {
dev_err(dev, "regulators node not found\n");
+ of_node_put(np);
return -EINVAL;
}
@@ -550,6 +551,7 @@ static int pfuze_parse_regulators_dt(struct pfuze_chip *chip)
}
of_node_put(parent);
+ of_node_put(np);
if (ret < 0) {
dev_err(dev, "Error parsing regulator init data: %d\n",
ret);