]> 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)
commit0159ec670763dde7c8518034eda8ab9ec267fd23
tree15e612d6ffe8178b4734f4a7d4d8d5d9e796a815
parent892ebdcccb4e11c5b43036a50e89e3869df5b429
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