PM / Domains: Split genpd_dev_pm_attach()
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 31 May 2018 10:59:57 +0000 (12:59 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 6 Jun 2018 07:09:21 +0000 (09:09 +0200)
commit8cb1cbd644d5bba5b72eedd632f249c1c677b792
treee90f3d78297cb58f4475dbe6f9d5b80127d9db46
parentbcd931f298d4a5660a4ff6f6629831d917a916d8
PM / Domains: Split genpd_dev_pm_attach()

To extend genpd to deal with allowing multiple PM domains per device, some
of the code in genpd_dev_pm_attach() can be re-used. Let's prepare for this
by moving some of the code into a sub-function.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c