From patchwork Wed Nov 19 13:48:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 41161 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ED7D320CBB for ; Wed, 19 Nov 2014 13:49:22 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id y19sf429381wgg.7 for ; Wed, 19 Nov 2014 05:49:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=OBtUPCEZjI5AqXtJ2jiUXj7RS3uoSVDqK+maE8YQ3aQ=; b=AKG96Qpt00vosnsa64Q2MFL9OrjxC50q2LUP5Q1uT1id1JB+Mbj5xoW24RuwekcCFs Pi3pUYNB0d9AxL3oLKTA8x7MLr4BVo3Et26zDHJixe3IujcyLHE0rZnSAui2kBE/AKu4 xjQb48aw3tVFTJ+9iXmZKMq7A+zD2Ud2tbhYznjEvdMAbAnn0slI8k/bKfQsXsvd49gD ufEhiaoqnk5vjD6RJ4/lOOSh8lG2p/R+CzyIk5hy9dAyqeqW1w4u8hkJ/4zqMRsUXKiV C/JXkQPjaG2J4ouK60qWr2CtXljqR523Bf297xgRCWQ0sLzZy9bxBI7IpC/5TegAWLE4 AHIQ== X-Gm-Message-State: ALoCoQn9biM5VX+OasKiKYk3zNzsf3CavvUlqTUfaDH33IJ0/6rtdBnw53j3wpw6/mLb1WsGq3rE X-Received: by 10.112.50.243 with SMTP id f19mr5388255lbo.1.1416404962159; Wed, 19 Nov 2014 05:49:22 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.45.7 with SMTP id i7ls1441000lam.107.gmail; Wed, 19 Nov 2014 05:49:22 -0800 (PST) X-Received: by 10.152.216.167 with SMTP id or7mr1974823lac.93.1416404961987; Wed, 19 Nov 2014 05:49:21 -0800 (PST) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id i7si1908962lbc.8.2014.11.19.05.49.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Nov 2014 05:49:21 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by mail-lb0-f174.google.com with SMTP id w7so511002lbi.33 for ; Wed, 19 Nov 2014 05:49:21 -0800 (PST) X-Received: by 10.112.235.196 with SMTP id uo4mr5367852lbc.66.1416404961866; Wed, 19 Nov 2014 05:49:21 -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.184.201 with SMTP id ew9csp84502lbc; Wed, 19 Nov 2014 05:49:21 -0800 (PST) X-Received: by 10.70.26.35 with SMTP id i3mr47116058pdg.84.1416404960342; Wed, 19 Nov 2014 05:49:20 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ql3si2826286pbb.96.2014.11.19.05.49.19 for ; Wed, 19 Nov 2014 05:49:20 -0800 (PST) Received-SPF: none (google.com: linux-kernel-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 S1755569AbaKSNtR (ORCPT + 26 others); Wed, 19 Nov 2014 08:49:17 -0500 Received: from mail-ie0-f180.google.com ([209.85.223.180]:35423 "EHLO mail-ie0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751547AbaKSNtP (ORCPT ); Wed, 19 Nov 2014 08:49:15 -0500 Received: by mail-ie0-f180.google.com with SMTP id rp18so467715iec.39 for ; Wed, 19 Nov 2014 05:49:14 -0800 (PST) X-Received: by 10.42.179.195 with SMTP id br3mr2763930icb.37.1416404954364; Wed, 19 Nov 2014 05:49:14 -0800 (PST) Received: from localhost.localdomain (host86-177-158-220.range86-177.btcentralplus.com. [86.177.158.220]) by mx.google.com with ESMTPSA id d1sm880255igz.13.2014.11.19.05.49.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Nov 2014 05:49:13 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, edubezval@gmail.com, linux-pm@vger.kernel.org Subject: [PATCH] thermal: sti: Ignore suspend/resume functions when !PM Date: Wed, 19 Nov 2014 13:48:59 +0000 Message-Id: <1416404939-365-1-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@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.217.174 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: , Prevents build warning: st_thermal.c:278:12: warning: ‘st_thermal_suspend’ defined but not used [-Wunused-function] st_thermal.c:286:12: warning: ‘st_thermal_resume’ defined but not used [-Wunused-function] Signed-off-by: Lee Jones Acked-by: Maxime Coquelin --- drivers/thermal/st/st_thermal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/thermal/st/st_thermal.c b/drivers/thermal/st/st_thermal.c index 90163b3..9841488 100644 --- a/drivers/thermal/st/st_thermal.c +++ b/drivers/thermal/st/st_thermal.c @@ -275,6 +275,7 @@ int st_thermal_unregister(struct platform_device *pdev) } EXPORT_SYMBOL_GPL(st_thermal_unregister); +#ifdef CONFIG_PM static int st_thermal_suspend(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); @@ -305,6 +306,8 @@ static int st_thermal_resume(struct device *dev) return 0; } +#endif + SIMPLE_DEV_PM_OPS(st_thermal_pm_ops, st_thermal_suspend, st_thermal_resume); EXPORT_SYMBOL_GPL(st_thermal_pm_ops);