Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9114317pxu; Mon, 28 Dec 2020 07:01:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxekszTLhmAHoTv2wiF5P3Qn/Pb6BpgL77YludW3SfNWuTgw0Xx8RTongC+DlzOakYD3Qkn X-Received: by 2002:a05:6402:949:: with SMTP id h9mr42142106edz.301.1609167694541; Mon, 28 Dec 2020 07:01:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609167694; cv=none; d=google.com; s=arc-20160816; b=VVCg148q14D7iB8Ol3iDLnS/v9ikbfIYZ5Y4ctNe3eCAL5VwIv6rEPPI0XqhUHtjpp wot3nFyU6FoW2VTrc9gimrQhNihpY76UnEhmgCVIMkgS0vEq3XoCpmbkE0hpS4tqHhBj AcCTftkkJJodW61xDfM+EZ2Q1DyUxN/+EURHzHXZvyiJ21zwsqFt28jPixjCfrnNu5dY 2SK4RC6WmIf52gh0Rvs17sqdkso+i4/LQNHSbotTvnfzyPh9JutW9DxhrjqMOm/B7FgG 0V55h8jpOxe3zzzdo2b4a0uRByOSEYEuP40CQ4FvnWdUBLRuLMi5kF9Du55UDDYYd7vE L47w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qpCSrOmgm+gO4RjTBopEEQ5abZaavn9mmkSgSroVu/4=; b=zy+UWZx+K177koMFDKrKCFpI5V95tazKCZWxNTuyGxYYzf7PxSxr8nnLRF83TV+vCo evcQDJ7+LvhGjK2av7PD29gjWn6b/MlJ+jhb8bU8muW4VlVYT5jmdVPEgn9KsWTuw1YY PuKlGgiz7UtfVby4EmH3tCy1pckVNrq9/QV/Eo6GJraiSby/plarE2cZ/5jez/2+TkBF NaaHdJOETEL2cWiIvagA83sBYFVOtimbZXsWpHjLrTH5Q9We/DGjEnuXUBLdFMNFOLli znP9T4lcG4T+kJK+HBsDgDIMtuRJAMkFy7p1rYsMCI7feXSJwpZbVrSJ6rbVvc3aurdI PONA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qdkAASDu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gb31si18539719ejc.669.2020.12.28.07.01.10; Mon, 28 Dec 2020 07:01:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qdkAASDu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439363AbgL1O63 (ORCPT + 99 others); Mon, 28 Dec 2020 09:58:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:49528 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440534AbgL1OO5 (ORCPT ); Mon, 28 Dec 2020 09:14:57 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1599022AAD; Mon, 28 Dec 2020 14:14:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164881; bh=BThpZ5djaZCNKZZrYR7gqdhOtxJEpl/PIxIzu+CFFPc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qdkAASDu5HAVK1J0jx3yJ5yzqJN4/4D7m1QgxzYQLthpDsU5pvfWSmivXIT9jc4dJ hL/K/0IfXVqdfl0fNP0PJcEDABKaEYJmSRfIbeisrsLUNy1AoV8lnwHS3dELqkG0eZ BusHYqknkmLDDHk98DBf75BSMcaOcy3M9cxJkFD4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Viresh Kumar , Sasha Levin Subject: [PATCH 5.10 332/717] cpufreq: imx: fix NVMEM_IMX_OCOTP dependency Date: Mon, 28 Dec 2020 13:45:30 +0100 Message-Id: <20201228125036.929757567@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit fc928b901dc68481ba3e524860a641fe13e25dfe ] 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 Signed-off-by: Viresh Kumar Signed-off-by: Sasha Levin --- drivers/cpufreq/Kconfig.arm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index 015ec0c028358..1f73fa75b1a05 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. -- 2.27.0