From patchwork Wed Oct 30 09:10:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 178085 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp989504ill; Wed, 30 Oct 2019 02:11:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwkVV+b4hzivY4b+ycqin5eNNPxwhaDGpJ57o45Hofh9BLY6caoTHAzyTcD5mi4YdrQh5PC X-Received: by 2002:a17:906:6844:: with SMTP id a4mr7762308ejs.102.1572426689900; Wed, 30 Oct 2019 02:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572426689; cv=none; d=google.com; s=arc-20160816; b=m0KLQ2AZ6rSkVQZZP8k4Ux8Hcfw+/ZZGzsQyjrLbw9wScC7vafGJSMkahKF9ZezWLh nz34famztiThrUBIvuftHIERlLNgppql9J/QR/5k6AiTpT4oa+1KdfL5GOmOaoR5M3OH uW3nlr4kZI8PcxznLEcuJJbf9tSZ6V6u0Kld4A2lXGI4q4p4E50DZHL+UW5nX+G0CzMV RN0NzmycUBdl0gszonANX/+0V9YMgPCiiL+hPF5Pa3foX1+U9VtXZcWQCFP/PJn8Df6g cUXKZWU5nzLecQOft4Jj+0X1HVGeYfkf/D2UI3P1fMlyExCBgPIVMYExEthrqAaaWmt/ 50fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=bOJ34PW9YadKMWVy7Lq7RFshOmanpmOaFJ0/LQDvOqk=; b=Wo+qOuTyLEob5Ad6skPGp5fF/PDY2zeTdexye8OoMn10N//+ZWfyHJLU1yVyxwfucE mh8W/2Ste5wsmO68jarq+7rTzda27pYpZ7VgrsXZawW0VhCQh/gmdcEWRgICmQ8LBYpL orN++f20rtJCp21uHlERjPjTNGTaB564vje+My9LPm+QPPfcOr0RnfvIBYPsoy6+o3hF JMBab/xbw0rp38oCunsc2CLE01RbQ8yci2HbTdWlFpTcQavwsColPYBJlHIdS1QHgr0a lYoBOUli3kyq2Pjhk/wXnpPRDR9Z1f+2tuI+zFMBR3TZhM46OGCQX9QCkKM607hoKtS8 OMsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cPwCZVCo; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f45si1042697ede.381.2019.10.30.02.11.29; Wed, 30 Oct 2019 02:11:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cPwCZVCo; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726109AbfJ3JL2 (ORCPT + 10 others); Wed, 30 Oct 2019 05:11:28 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:40066 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbfJ3JL2 (ORCPT ); Wed, 30 Oct 2019 05:11:28 -0400 Received: by mail-wm1-f65.google.com with SMTP id w9so1236374wmm.5 for ; Wed, 30 Oct 2019 02:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=bOJ34PW9YadKMWVy7Lq7RFshOmanpmOaFJ0/LQDvOqk=; b=cPwCZVCovU/2CggOdtlONW+HZ6vJ7trmhL6nPvJqYuw/oD1PyHK17o3Tz6pwRytnQ8 CrPypUXTHXlG8BoCEPtuwAzA9U1uWgHRJQwmCInvns67XnF+kWFy0hMm3NOG5UyoT/cq 0ycPALIj/Vgu//Ye9inmkdYDNjuKDw+Hrd34RhvLlFEbc/kSbr/R3mRY1RMC4gZiT9rN EhnO++bBeYFzwPbTyiwXLJy9yvyiFFpxsBU07mk+fw/ft6vj7n0T73TZxecfbyBi6YRG vHcwmIrVz1R9pDf4v4cEcKi7LrjFnFzQ2c9pm5tvv48nHEtON21c7C45Avw6axIGDOI3 6ZSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bOJ34PW9YadKMWVy7Lq7RFshOmanpmOaFJ0/LQDvOqk=; b=YcywIc4iaZgazfM7T5cJbEH4O4dgneUc7rBLw1SiI3D84CiPw4Ar9QMf51zVkxGj/l q9hJV5Iy9m70SnUmk781iNMSOqV+LDgnmqo/VCT1YStAuWfbheaUh5n3XDtNnqQ86CSl DU1owaUd4QynspLUrij1J+7N1LMBU31kAqPIOozFGE/OgvjMYae4AysYA6ixjhGuUelQ /z8LcaWUs/Bn/q4cqJ3VJKFtyknAr+wgZbcUX0DUAlYwR2jIsiVgz0CYTTrS9NMpef/b Ttfl55RYRYooIP5cSNHTfdPAPzqzsbzHz4p82l1wSA0wlZmT+8cTruT14k19tY17uGLM SUvg== X-Gm-Message-State: APjAAAX/keDBrnXdbCRTsk964TypOQpEsK/JM4t+NqVE1+tIKbPsuuc6 76qii2JmjnwplnZA4JZzXSgE9Q== X-Received: by 2002:a7b:c94f:: with SMTP id i15mr8250697wml.8.1572426686603; Wed, 30 Oct 2019 02:11:26 -0700 (PDT) Received: from localhost.localdomain ([2a01:e34:ed2f:f020:2c7f:2fc:5551:ee55]) by smtp.gmail.com with ESMTPSA id t24sm2608394wra.55.2019.10.30.02.11.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2019 02:11:26 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org Cc: Amit Daniel Kachhap , Viresh Kumar , Javi Merino , Zhang Rui , Eduardo Valentin , Amit Kucheria , linux-pm@vger.kernel.org (open list:THERMAL/CPU_COOLING), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/2] thermal: cpu_cooling: Remove pointless dependency on CONFIG_OF Date: Wed, 30 Oct 2019 10:10:36 +0100 Message-Id: <20191030091038.678-1-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The option CONFIG_CPU_THERMAL depends on CONFIG_OF in the Kconfig. It it pointless to check if CONFIG_OF is set in the header file as this is always true if CONFIG_CPU_THERMAL is true. Remove it. Signed-off-by: Daniel Lezcano --- include/linux/cpu_cooling.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 Acked-by: Viresh Kumar Reviewed-by: Amit Kucheria Reviewed-by: Amit Kucheria diff --git a/include/linux/cpu_cooling.h b/include/linux/cpu_cooling.h index bae54bb7c048..72d1c9c5e538 100644 --- a/include/linux/cpu_cooling.h +++ b/include/linux/cpu_cooling.h @@ -47,7 +47,7 @@ void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev) } #endif /* CONFIG_CPU_THERMAL */ -#if defined(CONFIG_THERMAL_OF) && defined(CONFIG_CPU_THERMAL) +#ifdef CONFIG_CPU_THERMAL /** * of_cpufreq_cooling_register - create cpufreq cooling device based on DT. * @policy: cpufreq policy. @@ -60,6 +60,6 @@ of_cpufreq_cooling_register(struct cpufreq_policy *policy) { return NULL; } -#endif /* defined(CONFIG_THERMAL_OF) && defined(CONFIG_CPU_THERMAL) */ +#endif /* CONFIG_CPU_THERMAL */ #endif /* __CPU_COOLING_H__ */