ARM: OMAP: PM: Drop useless checks for PM_SUSPEND_STANDBY
As OMAP uses the standard suspend_valid_only_mem() for its platform_suspend_ops.valid() callback, its platform_suspend_ops.enter() callback will never be called with state equal to PM_SUSPEND_STANDBY. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
parent
c1ae3cfa0e
commit
342bef7c88
|
@ -581,7 +581,6 @@ static int omap_pm_enter(suspend_state_t state)
|
|||
{
|
||||
switch (state)
|
||||
{
|
||||
case PM_SUSPEND_STANDBY:
|
||||
case PM_SUSPEND_MEM:
|
||||
omap1_pm_suspend();
|
||||
break;
|
||||
|
|
|
@ -163,7 +163,6 @@ static int omap_pm_enter(suspend_state_t suspend_state)
|
|||
return -ENOENT; /* XXX doublecheck */
|
||||
|
||||
switch (suspend_state) {
|
||||
case PM_SUSPEND_STANDBY:
|
||||
case PM_SUSPEND_MEM:
|
||||
ret = omap_pm_suspend();
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue