mirror of https://gitee.com/openkylin/linux.git
regulator: s5m8767: 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
4e52c03dfc
commit
b7db01f3b3
|
@ -591,6 +591,8 @@ static int s5m8767_pmic_dt_parse_pdata(struct platform_device *pdev,
|
|||
rmode++;
|
||||
}
|
||||
|
||||
of_node_put(regulators_np);
|
||||
|
||||
if (of_get_property(pmic_np, "s5m8767,pmic-buck2-uses-gpio-dvs", NULL)) {
|
||||
pdata->buck2_gpiodvs = true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue