From patchwork Thu Dec 3 22:53:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 336958 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp685965ilb; Thu, 3 Dec 2020 14:54:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxAzCuxFMi63AqWKQV5rk+IeE8xWm5ctFy6uYEwy2Fv+m4L9xnj2qZyRmMDCp2QlGKMobX3 X-Received: by 2002:a05:6402:31a5:: with SMTP id dj5mr5026167edb.110.1607036074097; Thu, 03 Dec 2020 14:54:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607036074; cv=none; d=google.com; s=arc-20160816; b=YQThf5QU5ROXj4j6nZIecjKkrKgO8U0RNmHbxWe6xn7BQsWocqo28/i76kyjHShl3u WNAIxBCKgu/ay8mc/ogAuCVd8tIKCLhnqFlqbmGTSi0GK88feShI35dMWqEFzfOWaj+C UGRahgjRH69+tzoJ7dV8fo0BYH8WqCmCVQ8bIph0W0HM7usEzLBo1A4pGeU/x/mTzH0y wltQWX0oWAeT8rE4BBuqIf6tndYM/7S1LEH2MJs+E/fzQLBDfZJ8AI+b5Yze9pz0e0Sm joDVdJyVYt/PVlbQmGcf51p3CF8euOvdXwHeak9YvvAqWaVeS9sgEk+myj8UyVz3n9tX 5tdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=sLVgMIB5m9UNVtBSW3wUuvoKJQoTDBgsDzrnIruZHUE=; b=XjtDvCPEknCqcrjTTNOwl1eOTWVRp2oK3gp0RKqK18/K27a2q2ThzdfhHY9EqB1Iyd JvNyHfjtdBWWaKPhZs2Q6QlFm3gInYbQogxuPLSV6BI3LJLFO+8b5X6dGstjlLn+qHCS t3UGXsbmjHK8nTpvVrYOu4JNi/wQZ32jtO+Wb2Q6PpkGfVcnHVPM6vb43uLG8DRC3Jis JPew7yodwkGFBCP01Eifvhw8h+/Dbp7Us5Fk1p47OJkYb8GmrsE35kGDw8jyl7juGduT 2a2BszXI3OLPgOaY2mL2I4gEhMXGHwrN7MgnoGQTYOlxNSg/PBdB6qqSvPgTtQBdze0x X4Mg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b7si245261ejq.611.2020.12.03.14.54.33; Thu, 03 Dec 2020 14:54:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387740AbgLCWy3 (ORCPT + 8 others); Thu, 3 Dec 2020 17:54:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:59420 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727278AbgLCWy3 (ORCPT ); Thu, 3 Dec 2020 17:54:29 -0500 From: Arnd Bergmann Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: "Rafael J. Wysocki" , Viresh Kumar , Walter Lozano Cc: Arnd Bergmann , Ansuel Smith , Peter De Schrijver , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cpufreq: imx: fix NVMEM_IMX_OCOTP dependency Date: Thu, 3 Dec 2020 23:53:32 +0100 Message-Id: <20201203225344.1477350-1-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Arnd Bergmann A driver should not 'select' drivers from another subsystem. If NVMEM is disabled, this one results in a warning: WARNING: unmet direct dependencies detected for NVMEM_IMX_OCOTP Depends on [n]: NVMEM [=n] && (ARCH_MXC [=y] || COMPILE_TEST [=y]) && HAS_IOMEM [=y] Selected by [y]: - ARM_IMX6Q_CPUFREQ [=y] && CPU_FREQ [=y] && (ARM || ARM64 [=y]) && ARCH_MXC [=y] && REGULATOR_ANATOP [=y] Change the 'select' to 'depends on' to prevent it from going wrong, and allow compile-testing without that driver, since it is only a runtime dependency. Fixes: 2782ef34ed23 ("cpufreq: imx: Select NVMEM_IMX_OCOTP") Signed-off-by: Arnd Bergmann --- drivers/cpufreq/Kconfig.arm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index 0732854d94ec..434ef03d2762 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -94,7 +94,7 @@ config ARM_IMX6Q_CPUFREQ tristate "Freescale i.MX6 cpufreq support" depends on ARCH_MXC depends on REGULATOR_ANATOP - select NVMEM_IMX_OCOTP + depends on NVMEM_IMX_OCOTP || COMPILE_TEST select PM_OPP help This adds cpufreq driver support for Freescale i.MX6 series SoCs.