From patchwork Fri Feb 6 14:55:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Grygorii.Strashko@linaro.org" X-Patchwork-Id: 5792401 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E57099F336 for ; Fri, 6 Feb 2015 14:56:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2F52F20173 for ; Fri, 6 Feb 2015 14:56:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 97BF4201BC for ; Fri, 6 Feb 2015 14:55:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757239AbbBFOzy (ORCPT ); Fri, 6 Feb 2015 09:55:54 -0500 Received: from mail-lb0-f172.google.com ([209.85.217.172]:56845 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757238AbbBFOzw (ORCPT ); Fri, 6 Feb 2015 09:55:52 -0500 Received: by mail-lb0-f172.google.com with SMTP id l4so18400976lbv.3 for ; Fri, 06 Feb 2015 06:55:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rtYFY5Jo6EStM2diCc6qGm8hFqMoY9b+X9fT4LkYxuQ=; b=f0auYm4rH6O9pM2Uf083SRJwGp43WKPcnxyNv/wHZjvkcBy+XhMbhFygGXPsYNjSL7 zoVsNu1N5emsK11qdKWP3DjCfXGKz3BtYlpaAnaBQrQ2CLf3nttKxMLuf8R9i5SmMd4k CCHT2ST1ktCGUb7f+gFTVPoea5hmCQIOQT7/OiWrO/CTwQmQGMXNGYyoniqXfL/nEsjd foTGeioRTS3a9NB9pwibzse6QWywk1mPwTiUcsxVW4NTvLwWjSIgpY6/MfHVDEqAI2IM OvH+qpFa0jQjHwhFEqltMGVk+Otedz1IP7i7MlgphvrpbQrzZCgqa4TChFA1cxl8HlCO afiw== X-Gm-Message-State: ALoCoQmYMofbXTE6gSVWOTF0Eu46ytVVIGjJHwyhoyGUVWorrtqMQ9MEbosL0GGPPdGVGvAMpMky X-Received: by 10.112.217.68 with SMTP id ow4mr3044339lbc.97.1423234551297; Fri, 06 Feb 2015 06:55:51 -0800 (PST) Received: from localhost ([195.238.92.128]) by mx.google.com with ESMTPSA id j8sm462571lbd.15.2015.02.06.06.55.50 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 06 Feb 2015 06:55:50 -0800 (PST) From: To: Eduardo Valentin , Zhang Rui Cc: Viresh Kumar , sumit.semwal@linaro.org, linux-omap@vger.kernel.org, linux-pm@vger.kernel.org, nm@ti.com, Grygorii Strashko Subject: [PATCH] thermal: ti-soc-thermal: bandgap: Fix build warning if !CONFIG_PM_SLEEP Date: Fri, 6 Feb 2015 16:55:46 +0200 Message-Id: <1423234546-10458-1-git-send-email-grygorii.strashko@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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 From: Grygorii Strashko Fix following build warning if CONFIG_PM_SLEEP is not set: drivers/thermal/ti-soc-thermal/ti-bandgap.c:1478:12: warning: 'ti_bandgap_suspend' defined but not used [-Wunused-function] static int ti_bandgap_suspend(struct device *dev) ^ drivers/thermal/ti-soc-thermal/ti-bandgap.c:1492:12: warning: 'ti_bandgap_resume' defined but not used [-Wunused-function] static int ti_bandgap_resume(struct device *dev) ^ Signed-off-by: Grygorii Strashko Acked-by: Nishanth Menon --- drivers/thermal/ti-soc-thermal/ti-bandgap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.c b/drivers/thermal/ti-soc-thermal/ti-bandgap.c index 74c0e34..5d46660 100644 --- a/drivers/thermal/ti-soc-thermal/ti-bandgap.c +++ b/drivers/thermal/ti-soc-thermal/ti-bandgap.c @@ -1402,7 +1402,7 @@ int ti_bandgap_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int ti_bandgap_save_ctxt(struct ti_bandgap *bgp) { int i;