Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2903811ybi; Thu, 4 Jul 2019 22:06:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIof/kOKQR2szKzvtCcQ/rsTJQicAieBE6nPMfdkG1jYur4ALgHjuh04nBA/NCRdr0CGgT X-Received: by 2002:a63:231c:: with SMTP id j28mr2511335pgj.430.1562303181151; Thu, 04 Jul 2019 22:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562303181; cv=none; d=google.com; s=arc-20160816; b=KvyXMhtuQWW1ppvhvzQdc1W2ZUcyGghbgHqQnxWxUX3kh6OyKCCSQPmW3WmJ+6MPwY C0yaHyB3ojCdBDjwaZ4CW9J05bQj3rF54uVoDoKYlOEBbrvwCH7KpQ+xZoAtBlyeXuNb PZ7OP10AcXykJyVJwLFUlbKqUA48/uw3NcDGtlczDHqTo3uamUQAvlRW2wPLJeu9eWzs 5UMApbcdKtrRAgq37mvT4VZmRQSP/WP4UFL7j9aaC1nWdE7R40/IPqy0Emj7qjOWxT1h fswr1KGQ6djEdOEIbLLIjIWWYhdkTYY1Hd6fWx0e+e+G4RyZ8egf/6xyUPXnmJlaRPIi iM5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=z1uXb7aVvbiQhIfdetTPciUIUtx0Lqgn36Y7o9v/CZU=; b=dxTtlrWyKtF5UiqaN0k55m0budiSj1ANeSBLSNMsUYTLpQfJzbtobtrTK2PBrfi8ng meCEBczbCMUbq53gEfhqZ6rw5iXWnVSxjjY36vdjAklKFrUl6J46EjF1vdIC+0/G1Ywx NjEq+IndAKJksvipO9noqvDKhVLsDvbIDogdyHDYW6xjTHkhc52oMqwBl+MA8Ejk/67P Ei752Pe4/hl7pimoWCoiJjt3rTEdvocumvYbb4HdlwZ+Fv01z3rPEQBfFmisBLzfaPJ6 swd3Pt73H3i5jd9qeWYRBOgqGWoubmz+NlgLP3Sa35VWKNokSuxPWAjQTuuz/8j3LGQO 3czA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i127si7928377pfc.177.2019.07.04.22.06.06; Thu, 04 Jul 2019 22:06:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727053AbfGEFFi (ORCPT + 99 others); Fri, 5 Jul 2019 01:05:38 -0400 Received: from inva020.nxp.com ([92.121.34.13]:58158 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726824AbfGEFFh (ORCPT ); Fri, 5 Jul 2019 01:05:37 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6767A1A0173; Fri, 5 Jul 2019 07:05:35 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 87CAF1A0E91; Fri, 5 Jul 2019 07:05:23 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id AF931402A6; Fri, 5 Jul 2019 13:05:09 +0800 (SGT) From: Anson.Huang@nxp.com To: rui.zhang@intel.com, edubezval@gmail.com, daniel.lezcano@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, l.stach@pengutronix.de, abel.vesa@nxp.com, andrew.smirnov@gmail.com, angus@akkea.ca, ccaione@baylibre.com, agx@sigxcpu.org, leonard.crestez@nxp.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 2/6] thermal: qoriq: Use __maybe_unused instead of #if CONFIG_PM_SLEEP Date: Fri, 5 Jul 2019 12:56:08 +0800 Message-Id: <20190705045612.27665-2-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190705045612.27665-1-Anson.Huang@nxp.com> References: <20190705045612.27665-1-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anson Huang Use __maybe_unused for power management related functions instead of #if CONFIG_PM_SLEEP to simply the code. Signed-off-by: Anson Huang --- drivers/thermal/qoriq_thermal.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index c7c7de2..2b2f79b 100644 --- a/drivers/thermal/qoriq_thermal.c +++ b/drivers/thermal/qoriq_thermal.c @@ -240,8 +240,7 @@ static int qoriq_tmu_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM_SLEEP -static int qoriq_tmu_suspend(struct device *dev) +static int __maybe_unused qoriq_tmu_suspend(struct device *dev) { u32 tmr; struct qoriq_tmu_data *data = dev_get_drvdata(dev); @@ -254,7 +253,7 @@ static int qoriq_tmu_suspend(struct device *dev) return 0; } -static int qoriq_tmu_resume(struct device *dev) +static int __maybe_unused qoriq_tmu_resume(struct device *dev) { u32 tmr; struct qoriq_tmu_data *data = dev_get_drvdata(dev); @@ -266,7 +265,6 @@ static int qoriq_tmu_resume(struct device *dev) return 0; } -#endif static SIMPLE_DEV_PM_OPS(qoriq_tmu_pm_ops, qoriq_tmu_suspend, qoriq_tmu_resume); -- 2.7.4