From patchwork Fri Feb 17 16:10:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 9580345 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A0D05600F6 for ; Fri, 17 Feb 2017 16:11:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91ACE2871C for ; Fri, 17 Feb 2017 16:11:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8621628733; Fri, 17 Feb 2017 16:11:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C5E22871C for ; Fri, 17 Feb 2017 16:11:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934831AbdBQQK5 (ORCPT ); Fri, 17 Feb 2017 11:10:57 -0500 Received: from albert.telenet-ops.be ([195.130.137.90]:51282 "EHLO albert.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934830AbdBQQKz (ORCPT ); Fri, 17 Feb 2017 11:10:55 -0500 Received: from ayla.of.borg ([84.193.137.253]) by albert.telenet-ops.be with bizsmtp id lsAh1u00Z5UCtCs06sAhSz; Fri, 17 Feb 2017 17:10:44 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.82) (envelope-from ) id 1cel7J-0002wQ-Qe; Fri, 17 Feb 2017 17:10:41 +0100 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1cel7L-0003lZ-BD; Fri, 17 Feb 2017 17:10:43 +0100 From: Geert Uytterhoeven To: Sekhar Nori , Kevin Hilman , Aaro Koskinen , Tony Lindgren , Dinh Nguyen Cc: "Rafael J. Wysocki" , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 3/3] ARM: socfpga: PM: Drop useless check for PM_SUSPEND_STANDBY Date: Fri, 17 Feb 2017 17:10:36 +0100 Message-Id: <1487347836-14427-4-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1487347836-14427-1-git-send-email-geert+renesas@glider.be> References: <1487347836-14427-1-git-send-email-geert+renesas@glider.be> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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: Geert Uytterhoeven Acked-by: Dinh Nguyen --- arch/arm/mach-socfpga/pm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-socfpga/pm.c b/arch/arm/mach-socfpga/pm.c index c378ab0c24317ccf..d4866788702cb87a 100644 --- a/arch/arm/mach-socfpga/pm.c +++ b/arch/arm/mach-socfpga/pm.c @@ -116,7 +116,6 @@ static int socfpga_pm_suspend(unsigned long arg) static int socfpga_pm_enter(suspend_state_t state) { switch (state) { - case PM_SUSPEND_STANDBY: case PM_SUSPEND_MEM: outer_disable(); cpu_suspend(0, socfpga_pm_suspend);