diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 23323add5b0b..e1f934fec562 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -1471,6 +1471,7 @@ static struct regulator_dev *regulator_dev_lookup(struct device *dev, node = of_get_regulator(dev, supply); if (node) { r = of_find_regulator_by_node(node); + of_node_put(node); if (r) return r; *ret = -EPROBE_DEFER;