From patchwork Mon Oct 27 12:36:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 5160071 Return-Path: X-Original-To: patchwork-dmaengine@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 BACB3C11AC for ; Mon, 27 Oct 2014 12:36:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EF5352027D for ; Mon, 27 Oct 2014 12:36:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 16ED4201C8 for ; Mon, 27 Oct 2014 12:36:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752562AbaJ0MgK (ORCPT ); Mon, 27 Oct 2014 08:36:10 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:35477 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751874AbaJ0MgJ (ORCPT ); Mon, 27 Oct 2014 08:36:09 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NE300D9LSC8YO40@mailout2.samsung.com> for dmaengine@vger.kernel.org; Mon, 27 Oct 2014 21:36:08 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 82.58.18484.83C3E445; Mon, 27 Oct 2014 21:36:08 +0900 (KST) X-AuditID: cbfee68f-f791c6d000004834-e6-544e3c38167b Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 0B.46.20081.73C3E445; Mon, 27 Oct 2014 21:36:08 +0900 (KST) Received: from DOJG1HAN03 ([10.89.38.123]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NE3004IUSC79O30@mmp1.samsung.com>; Mon, 27 Oct 2014 21:36:07 +0900 (KST) From: Jingoo Han To: 'Vinod Koul' Cc: dmaengine@vger.kernel.org, "'Williams, Dan J'" , 'Zhangfei Gao' , 'Jingoo Han' References: <000901cff1e2$74961710$5dc24530$%han@samsung.com> In-reply-to: <000901cff1e2$74961710$5dc24530$%han@samsung.com> Subject: [PATCH 2/2] dmaengine: k3dma: Add CONFIG_PM_SLEEP to suspend/resume functions Date: Mon, 27 Oct 2014 21:36:26 +0900 Message-id: <001301cff1e2$a03a9350$e0afb9f0$%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: Ac/x4nRvnjCFh8+oS/Wqvq7qiDTd+QAAAyVg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGIsWRmVeSWpSXmKPExsVy+t8zI10LG78QgyVbOS2mT73AaLF66l9W i8sLL7FavOzbz2Jxc80FdgdWj8V7XjJ53Lm2h82jb8sqRo/Pm+QCWKK4bFJSczLLUov07RK4 MjruvGcv+MhR8WTnfcYGxm3sXYycHBICJhI3Ht1kg7DFJC7cWw9kc3EICSxjlDh0axcjTNH7 +7cZIRKLGCX+dZ5kgnB+MUp8OnsarIpNQE3iy5fDQGM5OEQE1CWWXpcBCTMLzGWUuHpECMQW ErCVWPl5LthmTgE7iS3921hBbGGBCInGzs/MIK0sAqoS+78zgYR5gcoP7VnGBmELSvyYfI8F YqSWxPqdx5kgbHmJzWvegrVKAG199FcXJCwiYCTx524/O0SJiMS+F+/AzpcQOMcusWzOMrAE i4CAxLfJh1ggemUlNh1ghnhXUuLgihssExglZiHZPA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nzHmi1DhQSSE8sSc1OTS1ILYLpY+LglGpgPMaxOehou0nr Noe1j6b8nBbTwCvE8+m5srZzAtufm582tDK9WBj05N1ZJteZFswHdm7KLZFOjz2WzZ1/8NVL PSepHJmM79kMbeu/P3tz4QiXxcKNwsyq/UYyxg/LvTcacPpsmZoyLbzntUn6Kttt6Wafwpb8 e7k1/uKSAHnN0K0ztJ+J11XzKLEUZyQaajEXFScCACnGm04TAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-7.5 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 Add CONFIG_PM_SLEEP to suspend/resume functions to fix the following build warning when CONFIG_PM_SLEEP is not selected. This is because sleep PM callbacks defined by SIMPLE_DEV_PM_OPS are only used when the CONFIG_PM_SLEEP is enabled. drivers/dma/k3dma.c:790:12: warning: 'k3_dma_suspend' defined but not used [-Wunused-function] drivers/dma/k3dma.c:806:12: warning: 'k3_dma_resume' defined but not used [-Wunused-function] Signed-off-by: Jingoo Han Acked-by: Zhangfei Gao --- drivers/dma/k3dma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c index a1f911a..6029d1a 100644 --- a/drivers/dma/k3dma.c +++ b/drivers/dma/k3dma.c @@ -787,6 +787,7 @@ static int k3_dma_remove(struct platform_device *op) return 0; } +#ifdef CONFIG_PM_SLEEP static int k3_dma_suspend(struct device *dev) { struct k3_dma_dev *d = dev_get_drvdata(dev); @@ -816,6 +817,7 @@ static int k3_dma_resume(struct device *dev) k3_dma_enable_dma(d, true); return 0; } +#endif static SIMPLE_DEV_PM_OPS(k3_dma_pmops, k3_dma_suspend, k3_dma_resume);