Commit 4bbd10fd authored by Michael Hennerich's avatar Michael Hennerich Committed by Bryan Wu

Blackfin arch: Update/Fix PM support add new pm_ops valid

Signed-off-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: default avatarBryan Wu <bryan.wu@analog.com>
parent 0d4cbb5e
...@@ -158,10 +158,16 @@ static int bfin_pm_finish(suspend_state_t state) ...@@ -158,10 +158,16 @@ static int bfin_pm_finish(suspend_state_t state)
return 0; return 0;
} }
static int bfin_pm_valid(suspend_state_t state)
{
return (state == PM_SUSPEND_STANDBY);
}
struct pm_ops bfin_pm_ops = { struct pm_ops bfin_pm_ops = {
.prepare = bfin_pm_prepare, .prepare = bfin_pm_prepare,
.enter = bfin_pm_enter, .enter = bfin_pm_enter,
.finish = bfin_pm_finish, .finish = bfin_pm_finish,
.valid = bfin_pm_valid,
}; };
static int __init bfin_pm_init(void) static int __init bfin_pm_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment