From patchwork Wed Feb 26 01:30:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 3720171 X-Patchwork-Delegate: broonie@sirena.org.uk Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2D99EBF13A for ; Wed, 26 Feb 2014 01:30:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2E9E8201DD for ; Wed, 26 Feb 2014 01:30:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 453BA201F0 for ; Wed, 26 Feb 2014 01:30:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751399AbaBZBaS (ORCPT ); Tue, 25 Feb 2014 20:30:18 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:36406 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751397AbaBZBaR (ORCPT ); Tue, 25 Feb 2014 20:30:17 -0500 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1K005YQXIFGS50@mailout4.samsung.com> for linux-spi@vger.kernel.org; Wed, 26 Feb 2014 10:30:15 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 44.53.10364.7A34D035; Wed, 26 Feb 2014 10:30:15 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-e9-530d43a72e72 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id B4.1F.29263.7A34D035; Wed, 26 Feb 2014 10:30:15 +0900 (KST) Received: from DOJG1HAN03 ([12.36.166.146]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N1K00I2VXIEJN80@mmp1.samsung.com>; Wed, 26 Feb 2014 10:30:15 +0900 (KST) From: Jingoo Han To: 'Mark Brown' Cc: linux-spi@vger.kernel.org, 'Jingoo Han' , 'Chao Fu' , 'Xiubo Li' References: <003801cf3292$0b03b4c0$210b1e40$%han@samsung.com> In-reply-to: <003801cf3292$0b03b4c0$210b1e40$%han@samsung.com> Subject: [PATCH 2/3] spi: fsl-dspi: Use SIMPLE_DEV_PM_OPS macro Date: Wed, 26 Feb 2014 10:30:14 +0900 Message-id: <003901cf3292$4cb09a50$e611cef0$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-language: ko Thread-index: Ac8ykgrtUFS+Ce6XR9mzTnKcAc2q3wAAAhRg X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrIIsWRmVeSWpSXmKPExsVy+t8zI93lzrzBBm9/81lMf/mdxWLqwyds FpcXXmK16LzQwWrR+PEmuwOrx7/D/Uwem1Z1snn0bVnF6PF5k1wASxSXTUpqTmZZapG+XQJX Rtv32oKXrBVv9hxiamB8z9LFyMkhIWAiMfPOHFYIW0ziwr31bF2MXBxCAssYJZbteM4EU7Tw 7hcmiMQiRomPPc/YIZzfjBIXfx5gBqliE1CT+PLlMFCCg0NEQFXi/yt3kBpmgS5GiZUvvoOt ExKwlXi34jlYPaeAncSEczPA6oUF7CXe/a4BCbMAtb46sh/sIl6g8o13QUpAbEGJH5PvgY1h FtCSWL/zOBOELS+xec1bZpAxEgLqEo/+6kKERST2vXjHCGKLCBhJnHjwFuwxCYFr7BITTk9k h9glIPFt8iEWiF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yMTcnTVhJnPdAq3WgkEB6YklqdmpqQWoRzBYmDk6pBsbuo2r5 Kp/15FScV83n8uxnZ9fvyVyuy8g+zeqM0+afIX0rZ75V5plSXqVzt4VX2G7ms2npZyRvijjz /z08N+CQxZRVMyZ3TZscUXG3+IaP7P+pzske8aqX1YMeNn29+WfbnqvOD55oCCzkzl66q2rn ltPG1d9UJJ4bn9vxfvJi5zdM6p83nDZVYinOSDTUYi4qTgQAebLGGUEDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 SIMPLE_DEV_PM_OPS macro in order to make the code simpler. Signed-off-by: Jingoo Han --- drivers/spi/spi-fsl-dspi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 42ede0d..7f0dddb 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c @@ -437,9 +437,7 @@ static int dspi_resume(struct device *dev) } #endif /* CONFIG_PM_SLEEP */ -static const struct dev_pm_ops dspi_pm = { - SET_SYSTEM_SLEEP_PM_OPS(dspi_suspend, dspi_resume) -}; +static SIMPLE_DEV_PM_OPS(dspi_pm, dspi_suspend, dspi_resume); static struct regmap_config dspi_regmap_config = { .reg_bits = 32,