From: Rafael J. Wysocki Date: Thu, 14 Jul 2011 18:59:20 +0000 (+0200) Subject: PM / Domains: Take .power_off() error code into account X-Git-Tag: v3.1-rc1~304^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d28054020f97c7c9f15327a53945f0f40ffc5d7a;p=pandora-kernel.git PM / Domains: Take .power_off() error code into account Currently pm_genpd_poweroff() discards error codes returned by the PM domain's .power_off() callback, because it's safer to always regard the domain as inaccessible to drivers after a failing .power_off(). Still, there are situations in which the low-level code may want to indicate that it doesn't want to power off the domain, so allow it to do that by returning -EBUSY from .power_off(). Signed-off-by: Rafael J. Wysocki Acked-by: Magnus Damm --- Reading git-diff-tree failed