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: 5337411 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EABDBC11AC for ; Wed, 19 Nov 2014 13:49:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 384D4201EF for ; Wed, 19 Nov 2014 13:49:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4F94A20160 for ; Wed, 19 Nov 2014 13:49:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755450AbaKSNtQ (ORCPT ); Wed, 19 Nov 2014 08:49:16 -0500 Received: from mail-ie0-f172.google.com ([209.85.223.172]:46765 "EHLO mail-ie0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753808AbaKSNtP (ORCPT ); Wed, 19 Nov 2014 08:49:15 -0500 Received: by mail-ie0-f172.google.com with SMTP id ar1so488270iec.3 for ; Wed, 19 Nov 2014 05:49:14 -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:mime-version :content-type:content-transfer-encoding; bh=QmCutf50e5bFTJQouQLcvqxPm0fx+D+8U9ugQsODGTg=; b=ABhmv8YN9Uc+BuG8sBrzaVCYkuJzMZyFv2ZVCgfR1tmRU4f4EOurgxQzeL5DfqHpha 7Fr1bBlHKMbSSBfOgPsbZDswGQ8obZHYq+WXfvWjNFhMIOKeYReQg8PPOjjG/s6Y0QLi 7mNPAAE+/TzWkCfJI8qWDIxCThOAlZ9MNpf3zWkxz2EI4ttaXljoJBfAesOlGUyjuNXV 5D6KaOP9nxRcAPld9LXVgamNr8CnOLiwIG1hc2oxRvCi1wp0wrM6+x+a12xUaxd+nrmD 2LAm4jBdMyQiVVAkqhUFkTPuB4fFdpcyFh8pJtaVFwi6OUKgw2FHyUxEViacBIMxOJd4 ADhg== X-Gm-Message-State: ALoCoQmWwzhPw0hzAsnNWlI8nYCUE9SreOjcUs3kxM10gAIYfjTLhnj36hYZ6FAFTMFrk9YJT6+d 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-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=unavailable 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 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);