diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2015-01-27 21:13:40 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-02-03 22:56:53 +0100 |
commit | 14b530648834c9ec9853954750957bab0f792538 (patch) | |
tree | e5e6905a67adff70fe3df6ffa35f2a9f47ae8c8b /virt | |
parent | c1dbe2fbb33ef425a81e1a7cffd17c113c87cdbc (diff) | |
download | linux-14b530648834c9ec9853954750957bab0f792538.tar.bz2 |
PM / Domains: Don't allow an existing generic_pm_domain_data
When adding a device to a genpd, a struct generic_pm_domain_data is
allocated per device.
Verify that there are no existing generic_pm_domain_data for the device
we are about to add, since that tells us it has already been added to a
genpd.
When genpd supported PM domain device callbacks, this was a valid
scenario. Now it isn't so let's return an error code.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions