ARM: davinci: PM: Drop useless check for PM_SUSPEND_STANDBY
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 17 Feb 2017 16:10:34 +0000 (17:10 +0100)
committerSekhar Nori <nsekhar@ti.com>
Mon, 6 Mar 2017 11:36:42 +0000 (17:06 +0530)
As DaVinci 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: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/pm.c

index 0afd201..efb8035 100644 (file)
@@ -108,7 +108,6 @@ static int davinci_pm_enter(suspend_state_t state)
        int ret = 0;
 
        switch (state) {
-       case PM_SUSPEND_STANDBY:
        case PM_SUSPEND_MEM:
                davinci_pm_suspend();
                break;