diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2007-08-27 05:29:10 -0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-08-27 05:29:10 -0400 |
commit | 4bbd10fd312f50de74ba53f6cb968986da5dfe92 (patch) | |
tree | f8ac4bc1e96108a7be3e4ab7f662de67e7e92c0f /arch | |
parent | 0d4cbb5e7f60b2f1a4d8b7f6ea4cc264262c7a01 (diff) |
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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/blackfin/mach-common/pm.c b/arch/blackfin/mach-common/pm.c index 1772d8d2c1a7..b10302722202 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) | |||
158 | return 0; | 158 | return 0; |
159 | } | 159 | } |
160 | 160 | ||
161 | static int bfin_pm_valid(suspend_state_t state) | ||
162 | { | ||
163 | return (state == PM_SUSPEND_STANDBY); | ||
164 | } | ||
165 | |||
161 | struct pm_ops bfin_pm_ops = { | 166 | struct pm_ops bfin_pm_ops = { |
162 | .prepare = bfin_pm_prepare, | 167 | .prepare = bfin_pm_prepare, |
163 | .enter = bfin_pm_enter, | 168 | .enter = bfin_pm_enter, |
164 | .finish = bfin_pm_finish, | 169 | .finish = bfin_pm_finish, |
170 | .valid = bfin_pm_valid, | ||
165 | }; | 171 | }; |
166 | 172 | ||
167 | static int __init bfin_pm_init(void) | 173 | static int __init bfin_pm_init(void) |