From patchwork Fri Feb 17 16:10:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 9580349 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 A00DC600F6 for ; Fri, 17 Feb 2017 16:11:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92A762871C for ; Fri, 17 Feb 2017 16:11:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 878EC28733; Fri, 17 Feb 2017 16:11:08 +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 258E728732 for ; Fri, 17 Feb 2017 16:11:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934228AbdBQQKs (ORCPT ); Fri, 17 Feb 2017 11:10:48 -0500 Received: from albert.telenet-ops.be ([195.130.137.90]:51286 "EHLO albert.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934408AbdBQQKp (ORCPT ); Fri, 17 Feb 2017 11:10:45 -0500 Received: from ayla.of.borg ([84.193.137.253]) by albert.telenet-ops.be with bizsmtp id lsAh1u00V5UCtCs06sAhSw; 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-0002wJ-OP; Fri, 17 Feb 2017 17:10:41 +0100 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1cel7L-0003lP-9C; 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 1/3] ARM: davinci: PM: Drop useless check for PM_SUSPEND_STANDBY Date: Fri, 17 Feb 2017 17:10:34 +0100 Message-Id: <1487347836-14427-2-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 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 --- arch/arm/mach-davinci/pm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-davinci/pm.c b/arch/arm/mach-davinci/pm.c index 0afd201ab980464c..efb80354f3034d85 100644 --- a/arch/arm/mach-davinci/pm.c +++ b/arch/arm/mach-davinci/pm.c @@ -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;