summaryrefslogtreecommitdiffstats
path: root/drivers/devfreq
diff options
context:
space:
mode:
authorYangtao Li <tiny.windzz@gmail.com>2019-12-14 19:11:30 +0100
committerChanwoo Choi <cw00.choi@samsung.com>2019-12-30 01:59:06 +0100
commit29d867e97f7d781972ed542acfca3c2c0b512603 (patch)
tree9b75e2887689d7b59ebb2598c7e0049cae78112d /drivers/devfreq
parentPM / devfreq: rockchip-dfi: Add missing of_node_put() (diff)
downloadlinux-29d867e97f7d781972ed542acfca3c2c0b512603.tar.xz
linux-29d867e97f7d781972ed542acfca3c2c0b512603.zip
PM / devfreq: rk3399_dmc: Add missing of_node_put()
of_node_put() needs to be called when the device node which is got from of_parse_phandle has finished using. Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/devfreq')
-rw-r--r--drivers/devfreq/rk3399_dmc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/devfreq/rk3399_dmc.c b/drivers/devfreq/rk3399_dmc.c
index 2e65d7279d79..2f1027c5b647 100644
--- a/drivers/devfreq/rk3399_dmc.c
+++ b/drivers/devfreq/rk3399_dmc.c
@@ -372,6 +372,7 @@ static int rk3399_dmcfreq_probe(struct platform_device *pdev)
node = of_parse_phandle(np, "rockchip,pmu", 0);
if (node) {
data->regmap_pmu = syscon_node_to_regmap(node);
+ of_node_put(node);
if (IS_ERR(data->regmap_pmu))
return PTR_ERR(data->regmap_pmu);
}