Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758525Ab3ETXzy (ORCPT ); Mon, 20 May 2013 19:55:54 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:48245 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755897Ab3ETXzx (ORCPT ); Mon, 20 May 2013 19:55:53 -0400 X-AuditID: cbfee690-b7f6f6d00000740c-f1-519ab806a31d Date: Mon, 20 May 2013 23:55:50 +0000 (GMT) From: EUNBONG SONG Subject: [PATCH] i2c: i2c-designware: Fix compilation warning To: wsa@the-dreams.de, linux-i2c@vger.kernel.org Cc: "linux-kernel@vger.kernel.org" Reply-to: eunb.song@samsung.com MIME-version: 1.0 X-MTR: 20130520234352411@eunb.song Msgkey: 20130520234352411@eunb.song X-EPLocale: ko_KR.euc-kr X-Priority: 3 X-EPWebmail-Msg-Type: personal X-EPWebmail-Reply-Demand: 0 X-EPApproval-Locale: X-EPHeader: ML X-EPTrCode: X-EPTrName: X-MLAttribute: X-RootMTR: 20130520234352411@eunb.song X-ParentMTR: X-ArchiveUser: X-CPGSPASS: N Content-type: text/plain; charset=euc-kr MIME-version: 1.0 Message-id: <2512686.216921369094149829.JavaMail.weblogic@epml25> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplleLIzCtJLcpLzFFi42I5/e+Zji7bjlmBBu8eW1tc3jWHzYHR4/Mm uQDGKC6blNSczLLUIn27BK6ML8e2shX84ao4svsjUwPjFa4uRk4OIQEViZb/3xlBbAkBE4mr y1ZC2WISF+6tZ+ti5AKqWcYoceXCArii7W3/mCAS8xklvj5fwASSYBFQlZhw9y4LiM0moC3x 9ssDVhBbWMBWYnrzVjBbRMBGomnCLmYQm1nAUeLR5TvMEFfIS0w+fZkdxOYVEJQ4OfMJ0BwO oGVKEgvvaYKYvALKEi1zNSFOkJCYNf0CK4TNKzGj/SkLhC0nMe3rGmYIW1ri/KwNcL8s/v4Y Ks4vcez2DiaI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z0LSjqxmASPLKkbR1ILkguKk9ApDveLE3OLSvHS95PzcTYzg9PRs4Q7GL+et DzEKcDAq8fAKGM4KFGJNLCuuzD3EKMHBrCTC+70ZKMSbklhZlVqUH19UmpNafIgxGRh9E5ml RJPzgakzryTe0NjA2NDQ0tzA1NDIgjRhJXHep63WgUIC6YklqdmpqQWpRTBbmDg4pRoY3XX/ FogdE7HcVrDgaPX5zaVyX9isTvCHeDWeSp1p9H6WRMO7O0r80sscJ5Rz8v48Jzq9a3N52/VZ xZzB0txhc0v10ptbeyvSxKbL3JNhuuH9YdH5XX3LHx+TOJG1asE20aIGBre9TCnL9Nr4LFea n08zCu8q0/3nbevDZHObfX9DT1BFqr8SS3FGoqEWc1FxIgDg8MQWkwMAAA== DLP-Filter: Pass X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id r4KNu1LI016689 Content-Length: 1151 Lines: 33 Fix the following compilation warning when CONFIG_PM_RUNTIME is not enabled: drivers/i2c/busses/i2c-designware-pcidrv.c:188: warning: 'i2c_dw_pci_runtime_idle' defined but not used Signed-off-by: EunBong Song --- drivers/i2c/busses/i2c-designware-pcidrv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/i2c/busses/i2c-designware-pcidrv.c b/drivers/i2c/busses/i2c-designware-pcidrv.c index f6ed06c..2b5d3a6 100644 --- a/drivers/i2c/busses/i2c-designware-pcidrv.c +++ b/drivers/i2c/busses/i2c-designware-pcidrv.c @@ -185,6 +185,7 @@ static int i2c_dw_pci_resume(struct device *dev) return 0; } +#ifdef CONFIG_PM_RUNTIME static int i2c_dw_pci_runtime_idle(struct device *dev) { int err = pm_schedule_suspend(dev, 500); @@ -194,6 +195,7 @@ static int i2c_dw_pci_runtime_idle(struct device *dev) return 0; return -EBUSY; } +#endif static const struct dev_pm_ops i2c_dw_pm_ops = { .resume = i2c_dw_pci_resume, -- 1.7.10.4 ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?