projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d4cbb5
)
Blackfin arch: Update/Fix PM support add new pm_ops valid
author
Michael Hennerich
<michael.hennerich@analog.com>
Mon, 27 Aug 2007 09:29:10 +0000
(17:29 +0800)
committer
Bryan Wu
<bryan.wu@analog.com>
Mon, 27 Aug 2007 09:29:10 +0000
(17:29 +0800)
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
arch/blackfin/mach-common/pm.c
patch
|
blob
|
history
diff --git
a/arch/blackfin/mach-common/pm.c
b/arch/blackfin/mach-common/pm.c
index 1772d8d2c1a7c30ea4b885afe794deac6a68481e..b103027222024d9218b1b983c5c7041d8a46e689 100644
(file)
--- 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)