From patchwork Tue Nov 15 20:37:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9430491 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 D545960469 for ; Tue, 15 Nov 2016 20:56:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C288B286AD for ; Tue, 15 Nov 2016 20:56:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B723528BFD; Tue, 15 Nov 2016 20:56:43 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 67B4B28C93 for ; Tue, 15 Nov 2016 20:56:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753757AbcKOU4m (ORCPT ); Tue, 15 Nov 2016 15:56:42 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:32924 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753578AbcKOU4m (ORCPT ); Tue, 15 Nov 2016 15:56:42 -0500 Received: by mail-wm0-f66.google.com with SMTP id u144so4094310wmu.0 for ; Tue, 15 Nov 2016 12:56:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=Rya8chxyG7r/0ZjvYlsXTa+gywZd2RbgKEcRnxJKhio=; b=TG6Lm69375aEcNQS08ndUHsw8sHLiADLxZSct4eGIZupppRiin7jk5zekFU+NDP2f0 Tdy01iHdWukDoDxViDfvN44CyaiBsy5aVCgts9D0D7WoD7rYBxCCV2kiDAkQwmXQBvA4 oI86k1FBliFEsO2sxJ/g0oduPdd8liYYLD6ax97YU7meY+aGEG1ByyOA7OC09DITJO3+ Gx/iVMol2v4ja4KsrJpM+94GAuXt/2IpfW+nJ0vMxM//uxPUEOQ4zsaguk5dMp2MrLD5 XO86M4P+ndr5ufBNxec1FtnbVpxXMH917pCgU5FBadyoaMYiVxovatKNH6tf+5jBVCEk EULw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=Rya8chxyG7r/0ZjvYlsXTa+gywZd2RbgKEcRnxJKhio=; b=Fz9BrH8uUzDd48bbaUClUSSGKWc2LgCQx7RbUJ3t7epm+gWVATuzAixPqO08IK+7np wRXjldQWBQlQGPiMEFOjb8Kk92MAb4XPvKge+wY1m+fm0tZLlJGO3goH8BTILtYFQO4d CcmPaTocNT/uQPyqNYuH+AuT1/URuUdypELmkuLirrYD+pJKUnCLM8RLTxWL3XrQvdMe Difq1uOrfjN86tU39RZvqPwsSY2/MZsN0VIqc6+hJVdE4mfogxAAznRGEPR706BdbKaI sdbypQM4HTrWj5Wz0v0uj8WYU3r2HcpUE3xracJZdpcA3f/KzQ8t7f9jrpoj9AwA/19E aDKg== X-Gm-Message-State: ABUngvdM0u8DX1hBr9GFOV2nxvNiB2h3XcQIcs+4z65OkVHGaTYvqJu7RcdkmXoL1cDFWQ== X-Received: by 10.28.125.136 with SMTP id y130mr6100833wmc.112.1479243400432; Tue, 15 Nov 2016 12:56:40 -0800 (PST) Received: from ?IPv6:2003:62:5f58:9d00:51c7:39a5:8281:db0c? (p200300625F589D0051C739A58281DB0C.dip0.t-ipconnect.de. [2003:62:5f58:9d00:51c7:39a5:8281:db0c]) by smtp.googlemail.com with ESMTPSA id gk6sm36584079wjc.21.2016.11.15.12.56.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Nov 2016 12:56:40 -0800 (PST) To: Mark Brown Cc: "linux-spi@vger.kernel.org" From: Heiner Kallweit Subject: [PATCH] spi: fsl-espi: simplify of_fsl_espi_suspend Message-ID: <58c2b656-eca1-3a24-faef-f96838f670c4@gmail.com> Date: Tue, 15 Nov 2016 21:37:17 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Simplify of_fsl_espi_suspend a little. Signed-off-by: Heiner Kallweit --- drivers/spi/spi-fsl-espi.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index 28b6e7f..4fbcc36 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c @@ -776,11 +776,7 @@ static int of_fsl_espi_suspend(struct device *dev) return ret; } - ret = pm_runtime_force_suspend(dev); - if (ret < 0) - return ret; - - return 0; + return pm_runtime_force_suspend(dev); } static int of_fsl_espi_resume(struct device *dev)