Skip to content

Commit

Permalink
Blackfin arch: Update/Fix PM support add new pm_ops valid
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
  • Loading branch information
Michael Hennerich authored and Bryan Wu committed Aug 27, 2007
1 parent 0d4cbb5 commit 4bbd10f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/blackfin/mach-common/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4bbd10f

Please sign in to comment.