diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index eb083b26ab4f..876afa3919c1 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -1775,6 +1775,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;