From patchwork Tue Jan 7 22:08:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sylwester Nawrocki X-Patchwork-Id: 3450191 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 52D8F9F374 for ; Tue, 7 Jan 2014 22:09:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 937CE20103 for ; Tue, 7 Jan 2014 22:09:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A084120125 for ; Tue, 7 Jan 2014 22:08:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754033AbaAGWI6 (ORCPT ); Tue, 7 Jan 2014 17:08:58 -0500 Received: from mail-ea0-f182.google.com ([209.85.215.182]:62555 "EHLO mail-ea0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752707AbaAGWI5 (ORCPT ); Tue, 7 Jan 2014 17:08:57 -0500 Received: by mail-ea0-f182.google.com with SMTP id a15so480329eae.13 for ; Tue, 07 Jan 2014 14:08:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=Nppjk4UgqdcdPVdBNvLrSW55xzveueWwsDe3ado9ac4=; b=kat1gdfFtRQbbYDV2BMQsb7JQUuz6xu63jtqNv0yuoye4ITS/c4NU0u+SGiD2BUbWc W+UammeFxQcMXgP+BvAfM5VTllehccDvvRXxbHC+R4KDz6AkfrAdwvMM53xXA3Xo2OKG DHaf5U4FsduVleqBuErgBdD3O5wmS9wUbM5tdGfnUxt3B7mg9+q5gEr+DouOGjqQbAIj WHydGTxcvG4PJdrOSWRxchpiAtKhaocIjW8lGuADIiktqF8qLnkI1nY9+puWa+jfqlYJ hAyEvtj8sVr9Ss4vDkn5SeWO/tiJw9RrfteCzhxy6bHNr5Gv64lPDdPKy/Gaiq3UhAca RBVA== X-Received: by 10.14.207.194 with SMTP id n42mr23611859eeo.76.1389132536279; Tue, 07 Jan 2014 14:08:56 -0800 (PST) Received: from localhost.localdomain (89-76-41-4.dynamic.chello.pl. [89.76.41.4]) by mx.google.com with ESMTPSA id h3sm183900076eem.15.2014.01.07.14.08.54 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 07 Jan 2014 14:08:55 -0800 (PST) From: Sylwester Nawrocki To: linux-media@vger.kernel.org Cc: linux-samsung-soc@vger.kernel.org, Sylwester Nawrocki Subject: [PATCH] exynos4-is: Compile runtime PM callbacks in conditionally Date: Tue, 7 Jan 2014 23:08:48 +0100 Message-Id: <1389132528-21281-1-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB, RP_MATCHES_RCVD, T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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-core.o drivers/media/platform/exynos4-is/fimc-core.c:1040:12: warning: ‘fimc_runtime_resume’ defined but not used drivers/media/platform/exynos4-is/fimc-core.c:1057:12: warning: ‘fimc_runtime_suspend’ defined but not used Signed-off-by: Sylwester Nawrocki Reviewed-by: Jingoo Han --- drivers/media/platform/exynos4-is/fimc-core.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/media/platform/exynos4-is/fimc-core.c b/drivers/media/platform/exynos4-is/fimc-core.c index dcbea59..da2fc86 100644 --- a/drivers/media/platform/exynos4-is/fimc-core.c +++ b/drivers/media/platform/exynos4-is/fimc-core.c @@ -1037,6 +1037,7 @@ err_sclk: return ret; } +#ifdef CONFIG_PM_RUNTIME static int fimc_runtime_resume(struct device *dev) { struct fimc_dev *fimc = dev_get_drvdata(dev); @@ -1069,6 +1070,7 @@ static int fimc_runtime_suspend(struct device *dev) dbg("fimc%d: state: 0x%lx", fimc->id, fimc->state); return ret; } +#endif #ifdef CONFIG_PM_SLEEP static int fimc_resume(struct device *dev)