From: Rafael J. Wysocki Date: Tue, 7 Aug 2012 11:50:14 +0000 (+0200) Subject: PM: Make dev_pm_get_subsys_data() always return 0 on success X-Git-Tag: v3.6-rc2~19^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77254950bb174d637cd88d1a74e137ecf3185a65;p=pandora-kernel.git PM: Make dev_pm_get_subsys_data() always return 0 on success Commits 1d5fcfec22 (PM / Domains: Add device domain data reference counter) and 62d4490294 (PM / Domains: Allow device callbacks to be added at any time) added checks for the return value of dev_pm_get_subsys_data(), but those checks were incorrect, because that function returned 1 on success in some cases. Since all of the existing users of dev_pm_get_subsys_data() don't use the positive value returned by it on success, change its definition so that it always returns 0 when successful. Reported-by: Heiko Stübner Reported-by: Tushar Behera Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed