From patchwork Thu Apr 14 01:08:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 8830351 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D1558C0553 for ; Thu, 14 Apr 2016 01:08:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F41F2202A1 for ; Thu, 14 Apr 2016 01:08:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 228F520166 for ; Thu, 14 Apr 2016 01:08:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750890AbcDNBIK (ORCPT ); Wed, 13 Apr 2016 21:08:10 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:35248 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750922AbcDNBIJ (ORCPT ); Wed, 13 Apr 2016 21:08:09 -0400 Received: by mail-pa0-f68.google.com with SMTP id zy2so5291774pac.2 for ; Wed, 13 Apr 2016 18:08:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:mime-version :content-transfer-encoding; bh=+x7swR4pDVe2G3vYvsGcngPobt7OeDH+kASXPbszr+s=; b=gh1Ze0Yod7Ku5x57DFyUzVUsvMsFUMKCc3BBqXLNwZzIrQjhOSr5i40Ahi6hQPe71k KKjTA1vT+iefjXIUMvQMK9OJKJ4f0gNRAY2SlNslEKRTa1n3g7n/+5/bn2XQlXtmkjpe qu3WGSTjN1Z2SxHbcBJ44TNK4QmI/N6HxzCybVxvJBtO36PvevI/1gLc51aQSGPzw71W 7k2CHbTdzk1MfO8p0O3UfweXMJi6r19T+zIDGB0tSB217CvZ8l14creDxXwnSevPCvfO XSMgkzQqd55j4KN7HjoqeVIkkZNAsRJOR7g+xY0MY9OInOZ0kI1+bhFpQlf23d2eQwoV Z2Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:mime-version :content-transfer-encoding; bh=+x7swR4pDVe2G3vYvsGcngPobt7OeDH+kASXPbszr+s=; b=eBUe/Oiogf2yUVXKcrL4gi8o54I1C10j+N6MFLvw3jPfh0IYanaGOr7Xrn1Z63+gro O/uMWJ7m9+Vgi/ZK4i/hM5vm2cxGiGf3lLTh/03JGlDcISpMXTH1zESI5rPMUQLYvple STXZBal9GtSfS2dqOB5yLGErwwUrK97Or+B2F+A1SGcXgtRsPQVmJahptfnmwAFlvalc 21PqDD0ReJzE1jm9Mu15VzwRFOKhbzJRq+/QOncEpjQHoZA/9zrVK70iiOAttNeguXce oVTfKSd6Ft09jfDNX1ltqy3BH8mdw1g+d18JBMn4ajho3Tn3MWIdQEHZnepodL7mNPVb RWsw== X-Gm-Message-State: AOPr4FVl5eMbHGqCcmV96fSmaescfWW9wftCGYoidWpYuON/+/Rk8mIWBDYvzyRPXCUXVg== X-Received: by 10.66.199.66 with SMTP id ji2mr17268611pac.34.1460596088339; Wed, 13 Apr 2016 18:08:08 -0700 (PDT) Received: from [192.168.1.168] (118-167-9-168.dynamic.hinet.net. [118.167.9.168]) by smtp.gmail.com with ESMTPSA id f12sm53685563pfd.87.2016.04.13.18.08.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Apr 2016 18:08:07 -0700 (PDT) Message-ID: <1460596084.6630.1.camel@ingics.com> Subject: [PATCH 1/2] i2c: exynos5: Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS instead of open-coded From: Axel Lin To: Wolfram Sang Cc: Kukjin Kim , Krzysztof Kozlowski , linux-i2c@vger.kernel.org, linux-samsung-soc@vger.kernel.org Date: Thu, 14 Apr 2016 09:08:04 +0800 X-Mailer: Evolution 3.16.5-1ubuntu3.1 Mime-Version: 1.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS to simplify the code. Signed-off-by: Axel Lin Reviewed-by: Krzysztof Kozlowski --- drivers/i2c/busses/i2c-exynos5.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c index b29c750..8710052 100644 --- a/drivers/i2c/busses/i2c-exynos5.c +++ b/drivers/i2c/busses/i2c-exynos5.c @@ -847,14 +847,8 @@ static int exynos5_i2c_resume_noirq(struct device *dev) #endif static const struct dev_pm_ops exynos5_i2c_dev_pm_ops = { -#ifdef CONFIG_PM_SLEEP - .suspend_noirq = exynos5_i2c_suspend_noirq, - .resume_noirq = exynos5_i2c_resume_noirq, - .freeze_noirq = exynos5_i2c_suspend_noirq, - .thaw_noirq = exynos5_i2c_resume_noirq, - .poweroff_noirq = exynos5_i2c_suspend_noirq, - .restore_noirq = exynos5_i2c_resume_noirq, -#endif + SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(exynos5_i2c_suspend_noirq, + exynos5_i2c_resume_noirq) }; static struct platform_driver exynos5_i2c_driver = {