提交 de067e46 编写于 作者: G Geert Uytterhoeven 提交者: Arnd Bergmann

ARM: socfpga: PM: Drop useless check for PM_SUSPEND_STANDBY

As SoCFPGA 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: NGeert Uytterhoeven <geert+renesas@glider.be>
Acked-by: NTony Lindgren <tony@atomide.com>
Acked-by: NDinh Nguyen <dinguyen@kernel.org>
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
上级 4ffb75c2
...@@ -116,7 +116,6 @@ static int socfpga_pm_suspend(unsigned long arg) ...@@ -116,7 +116,6 @@ static int socfpga_pm_suspend(unsigned long arg)
static int socfpga_pm_enter(suspend_state_t state) static int socfpga_pm_enter(suspend_state_t state)
{ {
switch (state) { switch (state) {
case PM_SUSPEND_STANDBY:
case PM_SUSPEND_MEM: case PM_SUSPEND_MEM:
outer_disable(); outer_disable();
cpu_suspend(0, socfpga_pm_suspend); cpu_suspend(0, socfpga_pm_suspend);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册