aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorMark Brown <broonie@sirena.org.uk>2008-04-09 06:32:21 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-04-19 06:29:06 -0400
commitb86a5da8f7f57b9b0fe468d83d3f2af297fa1e14 (patch)
tree4d8cda4e5640c6b25b244b5997ed0e42392f1b48 /arch/arm
parent835e7f1c9ab03db6aa51973aee71d13ccb09cb19 (diff)
[ARM] 4946/1: pxa3xx: Print an error if we refuse to suspend
The PXA3xx will not suspend if there are no wakeup sources configured. Print a diagnostic message to make it easier for the user to see what's happening. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: eric miao <eric.y.miao@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-pxa/pxa3xx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c
index dc8d5ee9f286..604b68adc4ba 100644
--- a/arch/arm/mach-pxa/pxa3xx.c
+++ b/arch/arm/mach-pxa/pxa3xx.c
@@ -354,8 +354,10 @@ static void pxa3xx_cpu_pm_enter(suspend_state_t state)
354 /* 354 /*
355 * Don't sleep if no wakeup sources are defined 355 * Don't sleep if no wakeup sources are defined
356 */ 356 */
357 if (wakeup_src == 0) 357 if (wakeup_src == 0) {
358 printk(KERN_ERR "Not suspending: no wakeup sources\n");
358 return; 359 return;
360 }
359 361
360 switch (state) { 362 switch (state) {
361 case PM_SUSPEND_STANDBY: 363 case PM_SUSPEND_STANDBY: