From patchwork Fri Mar 29 07:08:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2364321 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 9857DDFB79 for ; Fri, 29 Mar 2013 07:08:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754615Ab3C2HID (ORCPT ); Fri, 29 Mar 2013 03:08:03 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:62689 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754643Ab3C2HIC (ORCPT ); Fri, 29 Mar 2013 03:08:02 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MKE00LO7UHD93Q0@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Fri, 29 Mar 2013 16:08:01 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 8A.CF.07735.1DD35515; Fri, 29 Mar 2013 16:08:01 +0900 (KST) X-AuditID: cbfee68e-b7f946d000001e37-1b-51553dd0e271 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 71.59.17838.0DD35515; Fri, 29 Mar 2013 16:08:00 +0900 (KST) Received: from DOJG1HAN02 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MKE00MSMUHCK510@mmp2.samsung.com>; Fri, 29 Mar 2013 16:08:00 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, 'Viresh Kumar' , 'Jingoo Han' References: <003301ce2c4b$d2864fb0$7792ef10$%han@samsung.com> In-reply-to: <003301ce2c4b$d2864fb0$7792ef10$%han@samsung.com> Subject: [PATCH 2/2] mmc: sdhci-spear: add CONFIG_PM_SLEEP to suspend/resume functions Date: Fri, 29 Mar 2013 16:08:00 +0900 Message-id: <003401ce2c4c$26048490$720d8db0$%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: Ac4sS9JAR067EdrGQTat5rwHHKkaqAAAAkhw Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLIsWRmVeSWpSXmKPExsVy+t8zY92LtqGBBnvmM1lsf72RzeLywkus Fkf+9zNarLz4l9mBxWPnrLvsHoeurGX06NuyitHj8ya5AJYoLpuU1JzMstQifbsErozVkz+y F8zkqLiw6BNzA+M/ti5GTg4JAROJyZcusUPYYhIX7q0HinNxCAksY5T49LCPEaZo+up9zBCJ 6YwS7/5PgKr6xSjxZP0PFpAqNgE1iS9fDoONEhFQlNjy/TiYzSyQI3Hy2y0mEFtIwFaia34T 2GpOATuJO8tawOLCAhESrz89B6tnEVCVWHdxCdBmDg5eoPon8xRBwrwCghI/Jt9jgRipJbF5 WxMrhC0vsXnNW2aQcgkBdYlHf3UhLjCSePLhKxtEiYjEvhfvGEFOlhA4xy6xbf8hZohVAhLf Jh9igeiVldh0gBniX0mJgytusExglJiFZPMsJJtnIdk8C8mKBYwsqxhFUwuSC4qT0ouM9IoT c4tL89L1kvNzNzFCorJvB+PNA9aHGJOB1k9klhJNzgdGdV5JvKGxmZGFqYmpsZG5pRlpwkri vGot1oFCAumJJanZqakFqUXxRaU5qcWHGJk4OKUaGOU7y30629j/rbvlMi8mwDl3M8szowNX bVz7p+RavBPS0DF0KZstJ3Q9dPLqvie1t05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-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org 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/mmc/host/sdhci-spear.c:295:12: warning: 'sdhci_suspend' defined but not used [-Wunused-function] drivers/mmc/host/sdhci-spear.c:308:12: warning: 'sdhci_resume' defined but not used [-Wunused-function] Signed-off-by: Jingoo Han Acked-by: Viresh Kumar --- drivers/mmc/host/sdhci-spear.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sdhci-spear.c b/drivers/mmc/host/sdhci-spear.c index 8d28334..7ae5b3a 100644 --- a/drivers/mmc/host/sdhci-spear.c +++ b/drivers/mmc/host/sdhci-spear.c @@ -291,7 +291,7 @@ static int sdhci_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int sdhci_suspend(struct device *dev) { struct sdhci_host *host = dev_get_drvdata(dev);