From patchwork Wed Nov 19 15:50:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 5338401 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AAC689F2F1 for ; Wed, 19 Nov 2014 15:51:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C603D201FA for ; Wed, 19 Nov 2014 15:50:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ED57F20172 for ; Wed, 19 Nov 2014 15:50:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755474AbaKSPuo (ORCPT ); Wed, 19 Nov 2014 10:50:44 -0500 Received: from mail-ig0-f179.google.com ([209.85.213.179]:45765 "EHLO mail-ig0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754398AbaKSPum (ORCPT ); Wed, 19 Nov 2014 10:50:42 -0500 Received: by mail-ig0-f179.google.com with SMTP id r2so1194891igi.6 for ; Wed, 19 Nov 2014 07:50:41 -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=5aGSREzWoC24mw4lk5VtbDqw7pzm7pYD2GaK99Wzkww=; b=nBNgkozbhCcpguKqn3/N9/izJxqwRgl4KuzHMwXEIr6tD6t2FL/BzTBbRUIVUPMXuG fuSj7gPPg45z3jTkkx1prHGqDGZd/AXdvnP8HZtgY1fuvnaW0Jvc1dTrM59hZpCBbj2o 5TX1Ni66I33TBkezDxl4l2/hUA5fhIiY1wukst4NAFtzGzmrgKFdCtuI7ZjTEIqubWC4 iA6C5xbhB0yIg807FQwIvuTBLpNP4CvuoT3aXmWiHSE/Y46ojffV2Vgymv3JKdUh7Oqy giwWZ1/3l5limkVtLJqHLNRrn67KsFK2C6KytKQiH12/aEC9fZ7jDp6P8DhAzq/qFHH2 iUJw== X-Gm-Message-State: ALoCoQm/KUeLYB3xShPXQS8kIq+IY30Es/wJZNeGduWkGotKSWjX+mHuWupc6uaiVnV7ieW9hdjO X-Received: by 10.107.155.209 with SMTP id d200mr45546145ioe.12.1416412241096; Wed, 19 Nov 2014 07:50:41 -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 m63sm1035712ioe.40.2014.11.19.07.50.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Nov 2014 07:50:40 -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 15:50:31 +0000 Message-Id: <1416412231-2752-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 --- v1 => v2: - CONFIG_PM => CONFIG_PM_SLEEP suggested by David Paris. 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..d1ec580 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_SLEEP 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);