From: Ulf Hansson Date: Tue, 27 Jan 2015 20:13:40 +0000 (+0100) Subject: PM / Domains: Don't allow an existing generic_pm_domain_data X-Git-Tag: fixes-v4.0-rc1~160^2~3^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14b530648834c9ec9853954750957bab0f792538;p=pandora-kernel.git 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 Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed