]> 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)
commit456834d9fe1370f19f78534747400ea4af4e6324
tree15e612d6ffe8178b4734f4a7d4d8d5d9e796a815
parentea5fd3543c6a54a09031f244520797dea9392f73
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