Commit 342bef7c authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Tony Lindgren

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: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent c1ae3cfa
...@@ -581,7 +581,6 @@ static int omap_pm_enter(suspend_state_t state) ...@@ -581,7 +581,6 @@ static int omap_pm_enter(suspend_state_t state)
{ {
switch (state) switch (state)
{ {
case PM_SUSPEND_STANDBY:
case PM_SUSPEND_MEM: case PM_SUSPEND_MEM:
omap1_pm_suspend(); omap1_pm_suspend();
break; break;
......
...@@ -163,7 +163,6 @@ static int omap_pm_enter(suspend_state_t suspend_state) ...@@ -163,7 +163,6 @@ static int omap_pm_enter(suspend_state_t suspend_state)
return -ENOENT; /* XXX doublecheck */ return -ENOENT; /* XXX doublecheck */
switch (suspend_state) { switch (suspend_state) {
case PM_SUSPEND_STANDBY:
case PM_SUSPEND_MEM: case PM_SUSPEND_MEM:
ret = omap_pm_suspend(); ret = omap_pm_suspend();
break; break;
......
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