From patchwork Wed Feb 26 01:28:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 3720161 X-Patchwork-Delegate: broonie@sirena.org.uk Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E74969F2ED for ; Wed, 26 Feb 2014 01:28:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0FC3B201FB for ; Wed, 26 Feb 2014 01:28:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 107F2201DD for ; Wed, 26 Feb 2014 01:28:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750800AbaBZB20 (ORCPT ); Tue, 25 Feb 2014 20:28:26 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:43279 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750780AbaBZB20 (ORCPT ); Tue, 25 Feb 2014 20:28:26 -0500 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1K001XWXFD3ED0@mailout3.samsung.com> for linux-spi@vger.kernel.org; Wed, 26 Feb 2014 10:28:25 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 72.42.10364.9334D035; Wed, 26 Feb 2014 10:28:25 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-69-530d4339e688 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 7E.FA.28157.8334D035; Wed, 26 Feb 2014 10:28:24 +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 <0N1K00KLBXFC3030@mmp1.samsung.com>; Wed, 26 Feb 2014 10:28:24 +0900 (KST) From: Jingoo Han To: 'Mark Brown' Cc: linux-spi@vger.kernel.org, 'Jingoo Han' , 'Jonas Gorski' Subject: [PATCH 1/3] spi: bcm63xx-hsspi: Use SIMPLE_DEV_PM_OPS macro Date: Wed, 26 Feb 2014 10:28:24 +0900 Message-id: <003801cf3292$0b03b4c0$210b1e40$%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+Ce6XR9mzTnKcAc2q3w== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRmVeSWpSXmKPExsVy+t8zI11LZ95ggyutTBZTHz5hs7i88BKr xe11p9gsGj/eZHdg8di0qpPNY8viDI++LasYPT5vkgtgieKySUnNySxLLdK3S+DK2LT+PlPB braKJ9cfMzYw7mftYuTkkBAwkZj/cTkzhC0mceHeerYuRi4OIYFljBJXf58HcjjAivqWOULE FzFKLJiyjRnC+c0osaHrNCNIN5uAmsSXL4fZQRpEBFQl/r9yBwkzC6RJvLm6kx3EFhZwkbi8 /wUTiM0CVLL14j+wVl4BW4k57cdYIGxBiR+T77FA9GpJrN95nAnClpfYvOYtM8Q96hKP/upC hEUk9r14BzZGREBPYsbeq2CnSQhsYpe4v3MGC8QuAYlvkw+xQPTKSmw6APWvpMTBFTdYJjCK zUKyeRaSzbOQbJ6FZN0CRpZVjKKpBckFxUnpRSZ6xYm5xaV56XrJ+bmbGCERNmEH470D1ocY k4HWT2SWEk3OB0ZoXkm8obGZkYWpiamxkbmlGW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6a2veP//uwPAq/veDy8p1Lkf+Bj3vLnP+wrfPd++hh28uWVcq4JVlw20263KrEU ZyQaajEXFScCAIirrGwjAwAA 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-bcm63xx-hsspi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-bcm63xx-hsspi.c b/drivers/spi/spi-bcm63xx-hsspi.c index 3ad3e0c..5a211e9 100644 --- a/drivers/spi/spi-bcm63xx-hsspi.c +++ b/drivers/spi/spi-bcm63xx-hsspi.c @@ -454,9 +454,8 @@ static int bcm63xx_hsspi_resume(struct device *dev) } #endif -static const struct dev_pm_ops bcm63xx_hsspi_pm_ops = { - SET_SYSTEM_SLEEP_PM_OPS(bcm63xx_hsspi_suspend, bcm63xx_hsspi_resume) -}; +static SIMPLE_DEV_PM_OPS(bcm63xx_hsspi_pm_ops, bcm63xx_hsspi_suspend, + bcm63xx_hsspi_resume); static struct platform_driver bcm63xx_hsspi_driver = { .driver = {