opp: Return genpd virtual devices from dev_pm_opp_attach_genpd()
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 8 Jul 2019 05:54:56 +0000 (11:24 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 26 Jul 2019 07:53:31 +0000 (13:23 +0530)
commit17a8f868ae3e85a173843b1ac65e744e8585bc5a
tree366428704840f67d53e5109a755c05fe628f5baa
parentbaea35e4db17a72145c84a401f70d496c8ebf833
opp: Return genpd virtual devices from dev_pm_opp_attach_genpd()

The cpufreq drivers don't need to do runtime PM operations on the
virtual devices returned by dev_pm_domain_attach_by_name() and so the
virtual devices weren't shared with the callers of
dev_pm_opp_attach_genpd() earlier.

But the IO device drivers would want to do that. This patch updates the
prototype of dev_pm_opp_attach_genpd() to accept another argument to
return the pointer to the array of genpd virtual devices.

Reported-by: Rajendra Nayak <rnayak@codeaurora.org>
Tested-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
include/linux/pm_opp.h