From patchwork Thu Mar 1 09:02:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [RFC,v2,7/8] PM / Runtime: Add can_power_off flag to subsys data Date: Wed, 29 Feb 2012 23:02:56 -0000 From: Lin Ming X-Patchwork-Id: 143959 Message-Id: <1330592577-16546-8-git-send-email-ming.m.lin@intel.com> To: Zhang Rui , Jeff Garzik , Alan Stern , "Rafael J. Wysocki" , Tejun Heo , Aaron Lu Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, linux-pm@vger.kernel.org, linux-acpi Parent device will check child's can_power_off flag to see if child device can be powered off. Signed-off-by: Lin Ming --- include/linux/pm.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/pm.h b/include/linux/pm.h index e4982ac..2e74531 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h @@ -465,6 +465,7 @@ struct pm_subsys_data { #ifdef CONFIG_PM_GENERIC_DOMAINS struct pm_domain_data *domain_data; #endif + bool can_power_off; }; struct dev_pm_info {