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: 44489 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 261E521521 for ; Fri, 6 Feb 2015 14:56:01 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id n3sf2177878wiv.0 for ; Fri, 06 Feb 2015 06:56:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=E/UM2Th0LjN1OuFaAVdxZF8FPyeBzZ8fX1l/ZZEFDxI=; b=TLnWzHFclWOaBRRlMrnvi5Osf5hKVhAnAhL40Hu8851tJxE9gyha3HvKa9FLeNrTTj CqwtE+s6znkKKlLBimrGvv1KMXNh1aaDtrxEGW1/Z7+PMjnqNd09ZKparJnE5+ShynhC /Gdv1hU16+ZrdUDjs8/w7cGFz+jPE89lUKOo1Wg5yvfcq2W+OnfhRr57HNyeOgjw993E EIK8SAEPOKlGkU0F3SMohy/fxEoWqsFMBr3ZeYwS9fa0494XLP4cA0yvHM7OCILHGalJ qdCqgEXzy2e+e3z6BN3dDlyNP5e0OVn/+mgrvvVVe2RR/y3X+95UwvsHRzjYWrWGEX8G AW/Q== X-Gm-Message-State: ALoCoQmnt0S7aBLDfaStdDafI8o414gAkYx6ABOO9QvQY27kt7ExElU7cVzlDSgkHpJEJlwO4Ne/ X-Received: by 10.180.92.133 with SMTP id cm5mr319089wib.4.1423234560441; Fri, 06 Feb 2015 06:56:00 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.66 with SMTP id i2ls289347lah.23.gmail; Fri, 06 Feb 2015 06:56:00 -0800 (PST) X-Received: by 10.152.3.132 with SMTP id c4mr3076713lac.115.1423234560277; Fri, 06 Feb 2015 06:56:00 -0800 (PST) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id qm9si1526825lbb.86.2015.02.06.06.55.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Feb 2015 06:55:59 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by labgd6 with SMTP id gd6so1624563lab.4 for ; Fri, 06 Feb 2015 06:55:59 -0800 (PST) X-Received: by 10.112.37.197 with SMTP id a5mr3177008lbk.19.1423234559852; Fri, 06 Feb 2015 06:55:59 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp1852974lbj; Fri, 6 Feb 2015 06:55:59 -0800 (PST) X-Received: by 10.70.128.202 with SMTP id nq10mr6384179pdb.45.1423234557415; Fri, 06 Feb 2015 06:55:57 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2si10581882pas.147.2015.02.06.06.55.56; Fri, 06 Feb 2015 06:55:57 -0800 (PST) Received-SPF: none (google.com: linux-pm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757239AbbBFOzy (ORCPT + 11 others); 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-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: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: grygorii.strashko@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- 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;