mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 22:54:05 +08:00
regulator: tps65090: Add missing of_node_put
Add of_node_put to decrement the ref count. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
38dbfb59d1
commit
026cdfe6f8
@ -188,6 +188,7 @@ static struct tps65090_platform_data *tps65090_parse_dt_reg_data(
|
||||
|
||||
ret = of_regulator_match(&pdev->dev, regulators, tps65090_matches,
|
||||
ARRAY_SIZE(tps65090_matches));
|
||||
of_node_put(regulators);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev,
|
||||
"Error parsing regulator init data: %d\n", ret);
|
||||
|
Loading…
Reference in New Issue
Block a user