summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/pm-sh7372.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2012-01-14 00:40:14 +0100
committerRafael J. Wysocki <rjw@sisk.pl>2012-01-14 00:40:14 +0100
commita029db43986e23677498ab4d84bb61b05de83484 (patch)
treef05254ed98a0e2a5c20c24b7343fbefe9c5dd366 /arch/arm/mach-shmobile/pm-sh7372.c
parente59a8db8d9b7c02e0bbefbeb18a3836288a97b8a (diff)
downloadop-kernel-dev-a029db43986e23677498ab4d84bb61b05de83484.zip
op-kernel-dev-a029db43986e23677498ab4d84bb61b05de83484.tar.gz
PM / shmobile: fix A3SP suspend method
Fix the reverted condition in sh7372_a3sp_suspend(). Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Magnus Damm <damm@opensource.se> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'arch/arm/mach-shmobile/pm-sh7372.c')
-rw-r--r--arch/arm/mach-shmobile/pm-sh7372.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/pm-sh7372.c b/arch/arm/mach-shmobile/pm-sh7372.c
index 77b8fc1..fcf8b17 100644
--- a/arch/arm/mach-shmobile/pm-sh7372.c
+++ b/arch/arm/mach-shmobile/pm-sh7372.c
@@ -276,7 +276,7 @@ static int sh7372_a3sp_suspend(void)
* Serial consoles make use of SCIF hardware located in A3SP,
* keep such power domain on if "no_console_suspend" is set.
*/
- return console_suspend_enabled ? -EBUSY : 0;
+ return console_suspend_enabled ? 0 : -EBUSY;
}
struct sh7372_pm_domain sh7372_a3sp = {
OpenPOWER on IntegriCloud