summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYangtao Li <tiny.windzz@gmail.com>2019-12-14 21:11:30 +0300
committerChanwoo Choi <cw00.choi@samsung.com>2019-12-30 03:59:06 +0300
commit29d867e97f7d781972ed542acfca3c2c0b512603 (patch)
tree9b75e2887689d7b59ebb2598c7e0049cae78112d /drivers
parentfb90fa80452b1bfd96a8decd455b294b1d672fb7 (diff)
downloadlinux-29d867e97f7d781972ed542acfca3c2c0b512603.tar.xz
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')
-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);
}