Commit d8150d14 authored by Peter Chen's avatar Peter Chen Committed by MyungJoo Ham

PM / devfreq: exynos-bus: add missing of_node_put after calling of_parse_phandle

of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.

[Commit updated to fix an error by MyungJoo]

Cc: Chanwoo Choi <>
Cc: MyungJoo Ham <>
Cc: Kyungmin Park <>
Cc: Kukjin Kim <>
Cc: Krzysztof Kozlowski <>
Signed-off-by: default avatarPeter Chen <>
Acked-by: default avatarChanwoo Choi <>
Signed-off-by: default avatarMyungJoo Ham <>
parent 3427c6f0
......@@ -383,7 +383,7 @@ err_clk:
static int exynos_bus_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct device_node *np = dev->of_node;
struct device_node *np = dev->of_node, *node;
struct devfreq_dev_profile *profile;
struct devfreq_simple_ondemand_data *ondemand_data;
struct devfreq_passive_data *passive_data;
......@@ -415,10 +415,13 @@ static int exynos_bus_probe(struct platform_device *pdev)
goto err;
if (of_parse_phandle(dev->of_node, "devfreq", 0))
node = of_parse_phandle(dev->of_node, "devfreq", 0);
if (node) {
goto passive;
} else {
ret = exynos_bus_parent_parse_of(np, bus);
if (ret < 0)
goto err;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment