From patchwork Wed Feb 26 01:32:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 3720201 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 3CDC9BF13A for ; Wed, 26 Feb 2014 01:32:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5903B201FB for ; Wed, 26 Feb 2014 01:32:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6BBEB201DD for ; Wed, 26 Feb 2014 01:32:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751215AbaBZBcv (ORCPT ); Tue, 25 Feb 2014 20:32:51 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:63282 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750800AbaBZBcu (ORCPT ); Tue, 25 Feb 2014 20:32:50 -0500 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1K00F7QXMOVO50@mailout1.samsung.com> for linux-spi@vger.kernel.org; Wed, 26 Feb 2014 10:32:49 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 55.B4.10364.0444D035; Wed, 26 Feb 2014 10:32:48 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-95-530d444024cf Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 32.CB.28157.0444D035; Wed, 26 Feb 2014 10:32:48 +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 <0N1K00K5YXMO3040@mmp1.samsung.com>; Wed, 26 Feb 2014 10:32:48 +0900 (KST) From: Jingoo Han To: 'Mark Brown' Cc: linux-spi@vger.kernel.org, 'Jingoo Han' , 'Barry Song' , 'Qipan Li' , 'Zhiwu Song' References: <003801cf3292$0b03b4c0$210b1e40$%han@samsung.com> In-reply-to: <003801cf3292$0b03b4c0$210b1e40$%han@samsung.com> Subject: [PATCH 3/3] spi: sirf: Use SIMPLE_DEV_PM_OPS macro Date: Wed, 26 Feb 2014 10:32:48 +0900 Message-id: <003a01cf3292$a85069d0$f8f13d70$%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+Ce6XR9mzTnKcAc2q3wAAFdWg X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJIsWRmVeSWpSXmKPExsVy+t8zQ10HF95gg7uTrC2eHOpltpj68Amb xctDmhaXF15itWj8eJPdYt2tLWwWj5fwObB77No5h9Vj06pONo++LasYPT5vkgtgieKySUnN ySxLLdK3S+DKaHzZzlQwn63i9K+6BsYFrF2MnBwSAiYSqzcdZYSwxSQu3FvP1sXIxSEksIxR on/bNWaYonvfPjNCJBYxSqy+8pgdwvnNKPHs2guwKjYBNYkvXw4DJTg4RARUJf6/cgepYRZY ySgxtfs82AohAVuJdyueg9VzCthJTDg3gx3EFhawltj0fA0LiM0C1Lt2xUOw83iB6lf9PsgO YQtK/Jh8D6yGWUBLYv3O40wQtrzE5jVvmUH2SgioSzz6qwsRFpHY9+IdI8Q5RhLXLruCnCMh cI9d4umPL2wQqwQkvk0+xALRKiux6QDUv5ISB1fcYJnAKD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eWpGanphakFsFsYeLg lGpgbLI2Y5ROM3+nsn7m7uSvl14seSGvuOPa3sacq5aHhVujZfRYmc6w2r8NTxNZ4/Fh+aoN mncP/2FL1/BtV3Q+NG9+1lt+z8eeHzseBpX6mb5rFinbdSqOY4fZqu9R9x5yeUeve2EX3nFA v1r4ofHZHwf+MIv6RXGekDip52hadu93Q+AyhUgfJZbijERDLeai4kQA03i5DEkDAAA= 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 Acked-by: Barry Song --- drivers/spi/spi-sirf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-sirf.c b/drivers/spi/spi-sirf.c index 5210b94..dc962a1 100644 --- a/drivers/spi/spi-sirf.c +++ b/drivers/spi/spi-sirf.c @@ -718,9 +718,8 @@ static int spi_sirfsoc_resume(struct device *dev) } #endif -static const struct dev_pm_ops spi_sirfsoc_pm_ops = { - SET_SYSTEM_SLEEP_PM_OPS(spi_sirfsoc_suspend, spi_sirfsoc_resume) -}; +static SIMPLE_DEV_PM_OPS(spi_sirfsoc_pm_ops, spi_sirfsoc_suspend, + spi_sirfsoc_resume); static const struct of_device_id spi_sirfsoc_of_match[] = { { .compatible = "sirf,prima2-spi", },