Blackfin arch: update pm.c according to power management API change.
Signed-off-by: Bryan Wu <bryan.wu@analog.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
c4d1889f7b
commit
9d7b6677ac
|
@ -102,10 +102,8 @@ static int bfin_pm_prepare(suspend_state_t state)
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case PM_SUSPEND_STANDBY:
|
case PM_SUSPEND_STANDBY:
|
||||||
break;
|
break;
|
||||||
case PM_SUSPEND_MEM:
|
|
||||||
return -ENOTSUPP;
|
|
||||||
|
|
||||||
case PM_SUSPEND_DISK:
|
case PM_SUSPEND_MEM:
|
||||||
return -ENOTSUPP;
|
return -ENOTSUPP;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -126,10 +124,8 @@ static int bfin_pm_enter(suspend_state_t state)
|
||||||
case PM_SUSPEND_STANDBY:
|
case PM_SUSPEND_STANDBY:
|
||||||
bfin_pm_suspend_standby_enter();
|
bfin_pm_suspend_standby_enter();
|
||||||
break;
|
break;
|
||||||
case PM_SUSPEND_MEM:
|
|
||||||
return -ENOTSUPP;
|
|
||||||
|
|
||||||
case PM_SUSPEND_DISK:
|
case PM_SUSPEND_MEM:
|
||||||
return -ENOTSUPP;
|
return -ENOTSUPP;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -155,9 +151,6 @@ static int bfin_pm_finish(suspend_state_t state)
|
||||||
case PM_SUSPEND_MEM:
|
case PM_SUSPEND_MEM:
|
||||||
return -ENOTSUPP;
|
return -ENOTSUPP;
|
||||||
|
|
||||||
case PM_SUSPEND_DISK:
|
|
||||||
return -ENOTSUPP;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
@ -166,7 +159,6 @@ static int bfin_pm_finish(suspend_state_t state)
|
||||||
}
|
}
|
||||||
|
|
||||||
struct pm_ops bfin_pm_ops = {
|
struct pm_ops bfin_pm_ops = {
|
||||||
.pm_disk_mode = PM_DISK_PLATFORM,
|
|
||||||
.prepare = bfin_pm_prepare,
|
.prepare = bfin_pm_prepare,
|
||||||
.enter = bfin_pm_enter,
|
.enter = bfin_pm_enter,
|
||||||
.finish = bfin_pm_finish,
|
.finish = bfin_pm_finish,
|
||||||
|
|
Loading…
Reference in New Issue