]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Domains: Verify the PM domain is present when adding a provider
authorJon Hunter <jonathanh@nvidia.com>
Mon, 12 Sep 2016 11:01:10 +0000 (12:01 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 13 Sep 2016 00:49:33 +0000 (02:49 +0200)
commitc003a82c7b614abe7f67d834a9a4b3222bc32693
tree15e612d6ffe8178b4734f4a7d4d8d5d9e796a815
parent76b858192fc44d4c263c6c690cff111fb9bbc22e
PM / Domains: Verify the PM domain is present when adding a provider

When a PM domain provider is added, there is currently no way to tell if
any PM domains associated with the provider are present. Naturally, the
PM domain provider should not be registered if the PM domains have not
been added. Nonetheless, verify that the PM domain(s) associated with a
provider are present when registering the PM domain provider.

This change adds a dependency on the function pm_genpd_present() when
CONFIG_PM_GENERIC_DOMAINS_OF is enabled and so ensure this function is
available when CONFIG_PM_GENERIC_DOMAINS_OF selected.

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