From patchwork Fri Mar 22 02:09:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2317931 Return-Path: X-Original-To: patchwork-spi-devel-general@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by patchwork1.kernel.org (Postfix) with ESMTP id 36AD0400E6 for ; Fri, 22 Mar 2013 02:09:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UIrPz-0003lq-Ly; Fri, 22 Mar 2013 02:09:19 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UIrPx-0003ll-Pp for spi-devel-general@lists.sourceforge.net; Fri, 22 Mar 2013 02:09:17 +0000 X-ACL-Warn: Received: from mailout3.samsung.com ([203.254.224.33]) by sog-mx-1.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1UIrPv-0000ky-OC for spi-devel-general@lists.sourceforge.net; Fri, 22 Mar 2013 02:09:17 +0000 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MK100F56HYYOBH0@mailout3.samsung.com> for spi-devel-general@lists.sourceforge.net; Fri, 22 Mar 2013 11:09:09 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id C1.20.05174.54DBB415; Fri, 22 Mar 2013 11:09:09 +0900 (KST) X-AuditID: cbfee68f-b7f4a6d000001436-c8-514bbd450104 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 7A.D8.17838.44DBB415; Fri, 22 Mar 2013 11:09:08 +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 <0MK100G3SHZ84H00@mmp2.samsung.com>; Fri, 22 Mar 2013 11:09:08 +0900 (KST) From: Jingoo Han To: 'Grant Likely' Subject: [PATCH] spi/s3c64xx: add CONFIG_PM_SLEEP to suspend/resume functions Date: Fri, 22 Mar 2013 11:09:08 +0900 Message-id: <00af01ce26a2$3ccd7ba0$b66872e0$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4mojyxc1/ujnRuQYOb6RbCeruewg== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNIsWRmVeSWpSXmKPExsVy+t8zI13Xvd6BBtf6WC1endnIZnF54SVW iyNTGtkdmD12L/jM5NG3ZRWjx8+XOgHMUVw2Kak5mWWpRfp2CVwZh4//YC7o4ap4vbyNtYHx CEcXIyeHhICJxO/JR9khbDGJC/fWs4HYQgLLGCW+Xy6GqZn2eSZQDRdQfDqjxM3Wj1DOL0aJ dWefsoJUsQmoSXz5chhskoiAnsSNCx2MIDazgL/E05ubwGqEBXwlPj68zwJiswioSiyc/hIs zitgKzFzyUp2CFtQ4sfkeywQvVoS63ceZ4Kw5SU2r3nL3MXIAXSRusSjv7owq1avXg+1SkRi 34t3jCC3SQjMY5c41z6HHWKXgMS3yYdYIHplJTYdYIZ4TFLi4IobLBMYxWYh2TwLyeZZSDbP QrJiASPLKkbR1ILkguKk9CJjveLE3OLSvHS95PzcTYyQiOrfwXj3gPUhxmSg9ROZpUST84ER mVcSb2hsZmRhamJqbGRuaUaasJI4r1qLdaCQQHpiSWp2ampBalF8UWlOavEhRiYOTqkGxsqZ B/aWrvHl4fp76c/XBntX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ter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Spam-Score: -2.4 (--) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -2.5 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 0.1 HDRS_LCASE Odd capitalization of message header 0.0 T_MANY_HDRS_LCASE Odd capitalization of multiple message headers X-Headers-End: 1UIrPv-0000ky-OC Cc: spi-devel-general@lists.sourceforge.net, 'Jingoo Han' X-BeenThere: spi-devel-general@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux SPI core/device drivers discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces@lists.sourceforge.net 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 SET_SYSTEM_SLEEP_PM_OPS are only used when the CONFIG_PM_SLEEP is enabled. drivers/spi/spi-s3c64xx.c:1362:12: warning: 's3c64xx_spi_suspend' defined but not used [-Wunused-function] drivers/spi/spi-s3c64xx.c:1381:12: warning: 's3c64xx_spi_resume' defined but not used [-Wunused-function] Signed-off-by: Jingoo Han --- drivers/spi/spi-s3c64xx.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index e862ab8..1435430 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1358,7 +1358,7 @@ static int s3c64xx_spi_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int s3c64xx_spi_suspend(struct device *dev) { struct spi_master *master = dev_get_drvdata(dev); @@ -1399,7 +1399,7 @@ static int s3c64xx_spi_resume(struct device *dev) return 0; } -#endif /* CONFIG_PM */ +#endif /* CONFIG_PM_SLEEP */ #ifdef CONFIG_PM_RUNTIME static int s3c64xx_spi_runtime_suspend(struct device *dev)