diff mbox

[RFC,v5,7/8] ARM: ux500: pm: Convert to multiple states

Message ID 1429896924-21540-8-git-send-email-ahaslam@baylibre.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Axel Haslam April 24, 2015, 5:35 p.m. UTC
From: Axel Haslam <ahaslam@baylibre.com>

The generic power domain framework added structure changes
to support multiple intermediate states when powering off a domain.

These changes are needed to prevent compilation breaks with
the new structures.

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
---
 arch/arm/mach-ux500/pm_domains.c | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox

Patch

diff --git a/arch/arm/mach-ux500/pm_domains.c b/arch/arm/mach-ux500/pm_domains.c
index 4d71c90..c155eaa 100644
--- a/arch/arm/mach-ux500/pm_domains.c
+++ b/arch/arm/mach-ux500/pm_domains.c
@@ -39,10 +39,18 @@  static int pd_power_on(struct generic_pm_domain *domain)
 	return 0;
 }
 
+struct genpd_power_state ux500_genpd_states[] = {
+	{
+		.name = "OFF",
+	}
+};
+
 static struct generic_pm_domain ux500_pm_domain_vape = {
 	.name = "VAPE",
 	.power_off = pd_power_off,
 	.power_on = pd_power_on,
+	.states = ux500_genpd_states,
+	.state_count = ARRAY_SIZE(ux500_genpd_states),
 };
 
 static struct generic_pm_domain *ux500_pm_domains[NR_DOMAINS] = {