aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/devfreq/exynos-bus.c
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2020-09-08 19:24:46 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2020-09-29 17:50:10 +0900
commit86d90fd95bbc3b3fdc2ef0507b7324cd1d0a358b (patch)
tree0ec61ad66ea90eb0c40808da03f277e03277536f /drivers/devfreq/exynos-bus.c
parentPM / devfreq: Add devfreq_get_devfreq_by_node function (diff)
downloadlinux-dev-86d90fd95bbc3b3fdc2ef0507b7324cd1d0a358b.tar.xz
linux-dev-86d90fd95bbc3b3fdc2ef0507b7324cd1d0a358b.zip
PM / devfreq: Change prototype of devfreq_get_devfreq_by_phandle function
Previously, devfreq core support 'devfreq' property in order to get the devfreq device by phandle. But, 'devfreq' property name is not proper on devicetree binding because this name doesn't mean the any h/w attribute. The devfreq core hand over the right to decide the property name for getting the devfreq device on devicetree. Each devfreq driver will decide the property name on devicetree binding and pass the their own property name to devfreq_get_devfreq_by_phandle function. Acked-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/devfreq/exynos-bus.c')
-rw-r--r--drivers/devfreq/exynos-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c
index 8fa8eb541373..58dbf51f0983 100644
--- a/drivers/devfreq/exynos-bus.c
+++ b/drivers/devfreq/exynos-bus.c
@@ -360,7 +360,7 @@ static int exynos_bus_profile_init_passive(struct exynos_bus *bus,
profile->exit = exynos_bus_passive_exit;
/* Get the instance of parent devfreq device */
- parent_devfreq = devfreq_get_devfreq_by_phandle(dev, 0);
+ parent_devfreq = devfreq_get_devfreq_by_phandle(dev, "devfreq", 0);
if (IS_ERR(parent_devfreq))
return -EPROBE_DEFER;