aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2012-08-15 14:57:06 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2012-09-03 19:45:00 -0400
commit18c081e27666c5db33075bf7ae4694e091cf1d20 (patch)
tree4d812e02695c23cb97e56369215f011c80afd438 /arch/arm/mach-shmobile
parent201dbd8110164d817e73c5602dd4d358d7fc535a (diff)
ARM: shmobile: Remove the console check from sh7372_enter_suspend()
The !console_suspend_enabled check in sh7372_enter_suspend() seems to be reversed and the condition it is supposed to catch (console clock enabled) should be detected by the sh7372_sysc_valid() check anyway, so remove it. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Magnus Damm <damm@opensource.se>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r--arch/arm/mach-shmobile/pm-sh7372.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/arch/arm/mach-shmobile/pm-sh7372.c b/arch/arm/mach-shmobile/pm-sh7372.c
index 9d055a9f27c8..d01122c0d9be 100644
--- a/arch/arm/mach-shmobile/pm-sh7372.c
+++ b/arch/arm/mach-shmobile/pm-sh7372.c
@@ -424,16 +424,14 @@ static int sh7372_enter_suspend(suspend_state_t suspend_state)
424 unsigned long msk, msk2; 424 unsigned long msk, msk2;
425 425
426 /* check active clocks to determine potential wakeup sources */ 426 /* check active clocks to determine potential wakeup sources */
427 if (sh7372_sysc_valid(&msk, &msk2)) { 427 if (sh7372_sysc_valid(&msk, &msk2) && a4s_suspend_ready) {
428 if (!console_suspend_enabled && a4s_suspend_ready) { 428 /* convert INTC mask/sense to SYSC mask/sense */
429 /* convert INTC mask/sense to SYSC mask/sense */ 429 sh7372_setup_sysc(msk, msk2);
430 sh7372_setup_sysc(msk, msk2); 430
431 431 /* enter A4S sleep with PLLC0 off */
432 /* enter A4S sleep with PLLC0 off */ 432 pr_debug("entering A4S\n");
433 pr_debug("entering A4S\n"); 433 sh7372_enter_a4s_common(0);
434 sh7372_enter_a4s_common(0); 434 return 0;
435 return 0;
436 }
437 } 435 }
438 436
439 /* default to enter A3SM sleep with PLLC0 off */ 437 /* default to enter A3SM sleep with PLLC0 off */