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: 5792411 Return-Path: X-Original-To: patchwork-linux-omap@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 E08CD9F399 for ; Fri, 6 Feb 2015 14:56:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 28FC720173 for ; Fri, 6 Feb 2015 14:56:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 323CD201B4 for ; Fri, 6 Feb 2015 14:56:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757261AbbBFOzy (ORCPT ); Fri, 6 Feb 2015 09:55:54 -0500 Received: from mail-lb0-f177.google.com ([209.85.217.177]:38503 "EHLO mail-lb0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757239AbbBFOzw (ORCPT ); Fri, 6 Feb 2015 09:55:52 -0500 Received: by mail-lb0-f177.google.com with SMTP id p9so18350628lbv.8 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=Mw5H7L7Z8n4EPYv1cfXah+fywREOKLuVnTlUlKxrmnUvbryGI8niKQmKrhlqf5mmV7 LYYsPrkqYyVrHtcuF/qDK57WTiSe4OdEjm0JtL8SBIydkG/AL8yHWf7knk142zvHqt/U lWqriTFYrTthKskeADhGrZC3+okquN8Vt+PETi1cMypXRwQD9PRSL0U74MoL6UNszivz IRNu+nHr4ADp38gj/QrVDEssyPe9o0dFQY/Oc7CCCtdrVpksjXP5FAjFkaU/fM6hNGD7 syBDD7VmLycvuur3qOyYh8iLTl4D6aOYNqTtp95T/X+VveY/tPIgrNeLOX3txXkXhLMj wwTg== X-Gm-Message-State: ALoCoQlPmoJhc796TwojlCHqDv9KQdyiKzvAMYry0tClTUD7HqgkIdqQRdGuDJtGL8zcYe3JFePk 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-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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;