From patchwork Mon Sep 20 10:02:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 514306 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1894548jao; Mon, 20 Sep 2021 03:02:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOUN2H6mpf9aYAxTl88jtQdnatVC2ZIkhjV6bmJfCqTQVmoSLuuC7143W/C24Rl7GUOWk0 X-Received: by 2002:a05:6402:1a53:: with SMTP id bf19mr28344591edb.235.1632132154325; Mon, 20 Sep 2021 03:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632132154; cv=none; d=google.com; s=arc-20160816; b=lY4blHytLXZbCXgQwifNdNKC68d0nprMoO4ixt91JZ5j8mLoC7ZaeQGdz4lwUx3uGe B7riwDVkKmm+cKsqhc/E2IjtunhgaVMIH5OL9rzRMLu//KpWjrkddHoVlzLRxntJg9u/ aTXW10sDOQEFz5TKhK+TVzsEMgXl6OAgHjI+4du/E4WxvcFfe6qHBEWvj8O2g2LWNILi n7SuK7HHnobqxhKxbgzzn9WaVueXSx09gNqdqhriLxAnjukedZH7GqLUAC+hvpxIxa3Q v79vOdoN+GKFAZzhyP2CTHPVdO/xWIAUlLoRXNttQWDn/XK6JFECYUPl0zIN7fIlXJCF +i/w== 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:dkim-signature; bh=mqDZ42rC1Lv8a9DF6sVDOlCjQDNLzlKGHDblix4tXnU=; b=GyAqr5oQrfCO7210s0h8/U0nDpgaaw47dRjSwm2pvg3lOsmcC2sckDWvdGWNTLIETI W4NjrshIUZLB9Pr9J5Abz0h7oOtl0QBWHHrQoQa/GosCmotCpdqhdQJWYZ7WFaTB2hLC idU4AU83+9PbXO7D6KP8Vw8mkyFatYm5qEPFv43GFGHgGl7o2kDUG6+eSaTVAMR5gSqW wycU2eRs1eCvc/AeRo6AbezowK7DQA0oN+wHvG1S7LJYAqMWHKZFn5OEBArMlD3gqzPB 4dcg2xko/tC2kieAW6zued0HRmOskg+lszDvnYEiRjuLPYN/mrS8h8z7vhB/Pc4Fns+3 VpXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bgQFmz34; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 b5si15173737edx.499.2021.09.20.03.02.34; Mon, 20 Sep 2021 03:02:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@kernel.org header.s=k20201202 header.b=bgQFmz34; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S232656AbhITKD7 (ORCPT + 17 others); Mon, 20 Sep 2021 06:03:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:44064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229724AbhITKD5 (ORCPT ); Mon, 20 Sep 2021 06:03:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E778E60F21; Mon, 20 Sep 2021 10:02:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632132150; bh=j+65ykJsuA5Lerqbgf8aNZsPTj8hxTeq+qTIGibjbkY=; h=From:To:Cc:Subject:Date:From; b=bgQFmz34yrdI8TzeTudfzqusLhuG9oRl6keiRv3QB4jwHVeCp/Rx14Ic258DbvJw2 /kelchclVckYFghy9CXx2GD5pjSyYj/dSgm2EUCrH6LYhgbnNPAob93QcOUexGICS2 rXwIsvSYp06IzmiyrNGFfozPL4w3pBaCFmdhH+0R8FC4zQORfqVMhF6WxReZy/dORd cj4UXcwx9epzhcyiwIZISB/0DkaBJZk3bt/9xF9oNcYS28y4PqAwPwtmyMGDLbP3/u OmbzBqEAUr8/6McDewWRm3YcRXnfRI57YRDDN5NBqb6Vp9INI8As/LIB1Cfr6yt7Ad 8u1uvVvoxk+fQ== From: Arnd Bergmann To: Andy Gross , Bjorn Andersson , Douglas Anderson , Niklas Cassel Cc: Arnd Bergmann , John Stultz , Lina Iyer , Ulf Hansson , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] PM: AVS: qcom-cpr: select CONFIG_NVMEM Date: Mon, 20 Sep 2021 12:02:21 +0200 Message-Id: <20210920100226.1448267-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Arnd Bergmann nvmem_cell_read_variable_le_u32 is only defined when CONFIG_NVMEM is set, otherwise we end up with this build failure: drivers/soc/qcom/cpr.c: In function 'cpr_populate_ring_osc_idx': drivers/soc/qcom/cpr.c:814:23: error: implicit declaration of function 'nvmem_cell_read_variable_le_u32' [-Werror=implicit-function-declaration] 814 | ret = nvmem_cell_read_variable_le_u32(drv->dev, fuses->ring_osc, &data); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Select the framwork from Kconfig. Fixes: 6feba6a62c57 ("PM: AVS: qcom-cpr: Use nvmem_cell_read_variable_le_u32()") Signed-off-by: Arnd Bergmann --- drivers/soc/qcom/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.29.2 diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index 79b568f82a1c..faf372c0fc71 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -29,6 +29,7 @@ config QCOM_COMMAND_DB config QCOM_CPR tristate "QCOM Core Power Reduction (CPR) support" depends on ARCH_QCOM && HAS_IOMEM + select NVMEM select PM_OPP select REGMAP help