Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752536AbaB0LjY (ORCPT ); Thu, 27 Feb 2014 06:39:24 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:51240 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751845AbaB0LjT (ORCPT ); Thu, 27 Feb 2014 06:39:19 -0500 X-AuditID: cbfee68d-b7fcd6d00000315b-b3-530f23e617f2 From: Jingoo Han To: "'Lee Jones'" Cc: linux-kernel@vger.kernel.org, "'Samuel Ortiz'" , "'Jingoo Han'" Subject: [PATCH] mfd: ucb1x00-core: Use SIMPLE_DEV_PM_OPS macro Date: Thu, 27 Feb 2014 20:39:18 +0900 Message-id: <000b01cf33b0$8c7f3000$a57d9000$%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 Thread-index: Ac8zsIxqTEsSdWYrT/ykVIEeiUcNig== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRmVeSWpSXmKPExsVy+t8zfd1nyvzBBh9eS1lcXniJ1eL+16OM Fpd3zWGzON3N6sDicefaHjaPeScDPfq2rGL0+LxJLoAlissmJTUnsyy1SN8ugSvj8qrn7AWP WSvm3exhb2B8zdLFyMEhIWAiseh3fRcjJ5ApJnHh3nq2LkYuDiGBZYwSTddnskMkTCSWNn1k h0gsYpTYd2wzC4Tzm1Fi0+OXLCBVbAJqEl++HAbrEAGyb+6ZxQRiMwvkSXzYvJkRxBYWsJe4 NmcTmM0ioCpx/nwTWC+vgK3EgRnNjBC2oMSPyfdYIHq1JNbvPA41R15i85q3zBBXq0s8+qsL sUpPYl3HXjaIEhGJfS/eMYLcJiGwjl3i48vlTBC7BCS+TT4E9bGsxKYDzBCPSUocXHGDZQKj 2Cwkm2ch2TwLyeZZSFYsYGRZxSiaWpBcUJyUXmSoV5yYW1yal66XnJ+7iRESYb07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Fy+DDHriT5xHMffX9E3Vd4xF7evb+1sWnSvVDeg9HF ZUmvNiQ7yG85eMJh1yztGK5qzROXxddLSN1yvaQmNz1rqs3Hn/l3Pi2v0Pzw5ZikEktxRqKh FnNRcSIAiJyGSyQDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler. Signed-off-by: Jingoo Han --- drivers/mfd/ucb1x00-core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mfd/ucb1x00-core.c b/drivers/mfd/ucb1x00-core.c index 0313f83..153d595 100644 --- a/drivers/mfd/ucb1x00-core.c +++ b/drivers/mfd/ucb1x00-core.c @@ -742,9 +742,7 @@ static int ucb1x00_resume(struct device *dev) } #endif -static const struct dev_pm_ops ucb1x00_pm_ops = { - SET_SYSTEM_SLEEP_PM_OPS(ucb1x00_suspend, ucb1x00_resume) -}; +static SIMPLE_DEV_PM_OPS(ucb1x00_pm_ops, ucb1x00_suspend, ucb1x00_resume); static struct mcp_driver ucb1x00_driver = { .drv = { -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/