Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4221427ybi; Mon, 29 Jul 2019 21:54:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIIXeyTlHHasVj0Es4SBj83fmBqBAq6ei9h/OVGj0dPjhuG2W0UDgpjzXXRRO2lDDd6DEo X-Received: by 2002:a17:90b:28f:: with SMTP id az15mr113799580pjb.18.1564462464964; Mon, 29 Jul 2019 21:54:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564462464; cv=none; d=google.com; s=arc-20160816; b=0oHB4eKG8Df3crmx7BHFUbV2aDm/jppjpSjAQ1pxpaxrNg+x5qwvK3unIroBZilwZy UTHa5dAWHEKf9TWdJ51gWqnK5KSWmpqo8XHfCEdpMPvBLN4m6CsZQZmE8nzx8bc/SqUW GAgS5rioNQL2MXtTSp0wk/lJLIodFiGIFP6dvvI2b2ZT5su4MCAdF4yWVD1ZMbmz2o8M kKSdZft86SufFOOYjVwEgDVIZ1NRPlTMFfraxmTQVnh1VceQviKP/n4YUBjrLNGXzmvR 5CY7w0nu8E42ljkcn6VUahnzkXasR0mgB2K6wk9cekGHKi4J/VLzgqEN3lyqchYxXjbQ szYQ== 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=lKAkm78IIYc7N2flwrr6Q6ubszUqg/9rP3jH57fGe2E=; b=osB3/A+Eczz57GhlhgZtglBOzxPY8r2FcFLcBkv/HAQI0LoWGGjvyETDBJWxNSdhxK 0+8pueRulJfny4PUZIuqV0qQILckhkTBbYtpUFPNKaaytZjCOoGXdv/kc65uxGfGVILx aG2da2OITLnIuouMRIpQ6+K0jFyUK1CWin1okmFIBalFPHSFRvFR0sqDNB/6tg10FkBK eSL6zacvKVvKU8eA9hab44fRbYf92Ou55OiNhfgOG+lOgSTahRKG1Sz0gCC2w4UKBBdo Jlp8LHNYDqezbVWPXFsZdmPnrQlzULdLG/6zuAZ7Q/9WZt4ZjcUvjiKFFBmqJ9VOPiwi Gszg== 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 o63si26053386pjo.94.2019.07.29.21.54.09; Mon, 29 Jul 2019 21:54:24 -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 S1731302AbfG3CbG (ORCPT + 99 others); Mon, 29 Jul 2019 22:31:06 -0400 Received: from inva020.nxp.com ([92.121.34.13]:45644 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730971AbfG3CbD (ORCPT ); Mon, 29 Jul 2019 22:31:03 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 4FDF21A0271; Tue, 30 Jul 2019 04:31:02 +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 699F41A0537; Tue, 30 Jul 2019 04:30:57 +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 25307402F2; Tue, 30 Jul 2019 10:30:51 +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, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH V3 4/5] thermal: qoriq: Use __maybe_unused instead of #if CONFIG_PM_SLEEP Date: Tue, 30 Jul 2019 10:21:25 +0800 Message-Id: <20190730022126.17883-4-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190730022126.17883-1-Anson.Huang@nxp.com> References: <20190730022126.17883-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 --- No changes. --- 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 8d19601..39542c6 100644 --- a/drivers/thermal/qoriq_thermal.c +++ b/drivers/thermal/qoriq_thermal.c @@ -256,8 +256,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); @@ -272,7 +271,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; int ret; @@ -289,7 +288,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