summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2007-08-27 17:29:10 +0800
committerBryan Wu <bryan.wu@analog.com>2007-08-27 17:29:10 +0800
commit4bbd10fd312f50de74ba53f6cb968986da5dfe92 (patch)
treef8ac4bc1e96108a7be3e4ab7f662de67e7e92c0f /arch
parent0d4cbb5e7f60b2f1a4d8b7f6ea4cc264262c7a01 (diff)
downloadop-kernel-dev-4bbd10fd312f50de74ba53f6cb968986da5dfe92.zip
op-kernel-dev-4bbd10fd312f50de74ba53f6cb968986da5dfe92.tar.gz
Blackfin arch: Update/Fix PM support add new pm_ops valid
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/blackfin/mach-common/pm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/blackfin/mach-common/pm.c b/arch/blackfin/mach-common/pm.c
index 1772d8d..b103027 100644
--- a/arch/blackfin/mach-common/pm.c
+++ b/arch/blackfin/mach-common/pm.c
@@ -158,10 +158,16 @@ static int bfin_pm_finish(suspend_state_t state)
return 0;
}
+static int bfin_pm_valid(suspend_state_t state)
+{
+ return (state == PM_SUSPEND_STANDBY);
+}
+
struct pm_ops bfin_pm_ops = {
.prepare = bfin_pm_prepare,
.enter = bfin_pm_enter,
.finish = bfin_pm_finish,
+ .valid = bfin_pm_valid,
};
static int __init bfin_pm_init(void)
OpenPOWER on IntegriCloud