From patchwork Thu Jan 16 14:49:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 3498971 Return-Path: X-Original-To: patchwork-linux-media@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 5D057C02DC for ; Thu, 16 Jan 2014 14:49:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 63C2020165 for ; Thu, 16 Jan 2014 14:49:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0E5C420154 for ; Thu, 16 Jan 2014 14:49:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752858AbaAPOtw (ORCPT ); Thu, 16 Jan 2014 09:49:52 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:28792 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751389AbaAPOtu (ORCPT ); Thu, 16 Jan 2014 09:49:50 -0500 MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZI00D501702050@mailout2.samsung.com> for linux-media@vger.kernel.org; Thu, 16 Jan 2014 23:49:48 +0900 (KST) X-AuditID: cbfee61b-b7f456d000006dfd-2c-52d7f18c8b2d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 97.1B.28157.C81F7D25; Thu, 16 Jan 2014 23:49:48 +0900 (KST) Content-transfer-encoding: 8BIT Received: from amdc1344.digital.local ([106.116.147.32]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MZI00IZB16Q7B50@mmp1.samsung.com>; Thu, 16 Jan 2014 23:49:48 +0900 (KST) From: Sylwester Nawrocki To: linux-media@vger.kernel.org Cc: Sylwester Nawrocki Subject: [PATCH] exynos4-is: fimc-lite: compile runtime PM callbacks in conditionally Date: Thu, 16 Jan 2014 15:49:28 +0100 Message-id: <1389883768-7775-1-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBLMWRmVeSWpSXmKPExsVy+t9jAd2ej9eDDE4tkrHo2bCV1eLwm3ZW ByaPvi2rGD0+b5ILYIrisklJzcksSy3St0vgyrjU8oqlYDpXxcV3wg2Mrzm6GDk5JARMJL5O Wc8MYYtJXLi3nq2LkYtDSGARo8TdZ4/YQRK8AoISPybfY+li5OBgFpCXOHIpGyTMLKAuMWne ImaI+g4miZN3zzKBJNgEDCV6j/YxgtgiQPVPem+wQTToS8zdshQsLiwQLrH50guwxSwCqhI9 846zQOxyldi1+Tw7yC4JAQWJOZNsJjDyzUJyxSyEK2YhuWIBI/MqRtHUguSC4qT0XCO94sTc 4tK8dL3k/NxNjODweia9g3FVg8UhRgEORiUe3h0PrwUJsSaWFVfmHmKU4GBWEuF9/fJ6kBBv SmJlVWpRfnxRaU5q8SFGaQ4WJXHeg63WgUIC6YklqdmpqQWpRTBZJg5OqQbGbQfkOqf7fn+a luNlxjAr5aXLbUXNKSxF/KwfU1sF/FwfPPvC/HJFddbenpg5Dh23fgguWfF4+u+ZDz9t6tb4 O/Ppx49v1aWjzvqL1F3gUX+Sdi7gYJTvmYsWAab2un9e7FqiJCIqyW+o1/f9Xb+F2+Lth5zf Z1w+JaF8cmtP49eL/CYuKvs+KbEUZyQaajEXFScCACUN7AYrAgAA Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.2 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 Enclose the runtime PM helpers in #ifdef CONFIG_PM_RUNTIME/#endif to avoid following compile warning when CONFIG_PM_RUNTIME is disabled: CC drivers/media/platform/exynos4-is/fimc-lite.o drivers/media/platform/exynos4-is/fimc-lite.c:1591:12: warning: ‘fimc_lite_runtime_resume’ defined but not used [-Wunused-function] drivers/media/platform/exynos4-is/fimc-lite.c:1599:12: warning: ‘fimc_lite_runtime_suspend’ defined but not used [-Wunused-function] Signed-off-by: Sylwester Nawrocki --- drivers/media/platform/exynos4-is/fimc-lite.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/exynos4-is/fimc-lite.c b/drivers/media/platform/exynos4-is/fimc-lite.c index 5213ff0..779ec3c 100644 --- a/drivers/media/platform/exynos4-is/fimc-lite.c +++ b/drivers/media/platform/exynos4-is/fimc-lite.c @@ -1588,6 +1588,7 @@ err_clk_put: return ret; } +#ifdef CONFIG_PM_RUNTIME static int fimc_lite_runtime_resume(struct device *dev) { struct fimc_lite *fimc = dev_get_drvdata(dev); @@ -1603,6 +1604,7 @@ static int fimc_lite_runtime_suspend(struct device *dev) clk_disable(fimc->clock); return 0; } +#endif #ifdef CONFIG_PM_SLEEP static int fimc_lite_resume(struct device *dev)