Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2954731ybf; Mon, 2 Mar 2020 19:34:15 -0800 (PST) X-Google-Smtp-Source: ADFU+vtgS2ZjokHTGxbO+2NZ+30dnio+JaRDfslHXgx/eqNzDafYvHwjZRUAvW52rxbKXEoaj+jo X-Received: by 2002:a05:6830:18ce:: with SMTP id v14mr1825871ote.36.1583206455112; Mon, 02 Mar 2020 19:34:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583206455; cv=none; d=google.com; s=arc-20160816; b=eV0A862AGOtRhtD4tbfdtzKrL7K9fOt0tNPo+euALpJ7pp1j+hGDXnT4ajR1pyZvbr tpWkO1VB5Hj0d7jmoVjLvv46liNXsVLZ+LqOflhk+LKrqDwAiJtYpeqFWjXLW+g26689 Fn1IuKvh6vvnqExeq3w14NAXTnjsd6un5z4zgUkJZ44w8fXJQ3z9pVTCnaud2yhVibF1 Mq5Jq3PizosB2rdM/+6x6ZLQePpsx6LSp+16LXkjSOd23TLXtrjl3lw9pE62iPEikdJF A36sSznaYVM+hqoPNLN94pj72MwT3VaJorZtg++5tX9RQNaf8BtvMsam3Iv65wbHrwvy XN9w== 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=lAJWYCHPBwbTZmy3CiLGkMtDA8pTL5n25oGIItGeMNY=; b=tFPYfTtShcIoUL+NHLXIy3snD9KNZY2bIWxnT1qyBo0BN8krDbp7QUOvtqfW7htRtY 6LKNN+N7UQ8Jiw4lpEDG5gTb4yji3sFIiGCVon5MYrxAcw/Lnksc+/8eHjkx4mL/TODs Ca4/m2AIdb1D7zxUZaofpTwKcjFr+tBR/TeISokBad8MhTPgBWjgGEaN3ToTSg0a6oPp W9gg9ChAP4uLrgSuKPdApidMk72ViH4FKWVNrUL8kRcjHD3iGvNy3u6sn2mYF2p0Qe8J AXtgYC2l2zrGLEnY8n8+iqL+5TlGOwU5cTPXz1Yo0/FTl2rQSoT5a4lfUxuVPJZ24XKs IBgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ku+HgPVx; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si7346243oik.171.2020.03.02.19.34.00; Mon, 02 Mar 2020 19:34:15 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ku+HgPVx; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726992AbgCCDc0 (ORCPT + 99 others); Mon, 2 Mar 2020 22:32:26 -0500 Received: from mail-pj1-f65.google.com ([209.85.216.65]:55304 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726876AbgCCDc0 (ORCPT ); Mon, 2 Mar 2020 22:32:26 -0500 Received: by mail-pj1-f65.google.com with SMTP id a18so700287pjs.5; Mon, 02 Mar 2020 19:32:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=lAJWYCHPBwbTZmy3CiLGkMtDA8pTL5n25oGIItGeMNY=; b=ku+HgPVxDA+o9Bbry1KSvBM5GvloyefWo5xjpCjFE4hhNhcMujErT+uE7rUw26W6sw r3KUouVZo2G1fqyRz6CFCJ3MUQYnL+lTJdz6IoBMNTNmQc5FdmAX6XLG4kyNwCdEgikw fz9D6ImwTBdBuQiDL2pBa/H0C7DSzrzpv+mkiQtnsc6RwpwqvfUVOYjP5zBargbW1ehs PRUqOyqKsH8crBsRoBp7sSteit0FMjG6BGuI8pkyI1bpKhY+QxHpMtA0yx9d44vEIa7V J/3HPjHLPXpVFJx4gzePGVVOj9qNG7P9IiOuRvDXipj0VuYehEs4Z2Yz/oF8I9T9X0Ze DwTA== 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=lAJWYCHPBwbTZmy3CiLGkMtDA8pTL5n25oGIItGeMNY=; b=b3EdVhtmzCTBCtCw+You1XGLxbOKKdak/M+krlWC9zDiMr220zMBA3QlJx3SmyXkBc URCx2AwkjvF0VUUJI3Uqg82fZLiATH0WwpYDDaOx8Mhojp9zAgOFMmTO7idE0TqAiovS 45RNhcppAoNDLziCxnW09GsKPCKwH00NVXrLfzPbrux33mq8wG/Tpnt8TDl/eWl0OFAE +p9PQ8yGEbx6CkgENcc8kNSAADyuvFOPdcZ7OBgxu10dtn2NMx3MqXePzeX47QpbMi8w 0jthHT/Loeo0IC6I5Vi2QOWG4dExmJH7eb8sAYnL4sMvs9zBOyr/mJLHXNWJK4oehPoQ Wrkw== X-Gm-Message-State: ANhLgQ0MPznX7eEzMhZ5gXd4H6KqXu+oPLxUdlI05mkzFILpMMf7UJr0 tolcf1G9pQjHRVff/ll3yrk= X-Received: by 2002:a17:902:d394:: with SMTP id e20mr2240529pld.239.1583206344690; Mon, 02 Mar 2020 19:32:24 -0800 (PST) Received: from sh03840pcu.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id d77sm9344494pfd.109.2020.03.02.19.32.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Mar 2020 19:32:24 -0800 (PST) From: Baolin Wang To: linus.walleij@linaro.org Cc: rdunlap@infradead.org, orsonzhai@gmail.com, zhang.lyra@gmail.com, baolin.wang7@gmail.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: sprd: Fix the kconfig warning Date: Tue, 3 Mar 2020 11:32:15 +0800 Message-Id: X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On X86 plaform, if the CONFIG_OF is not selected, and set the CONFIG_SPRD_SC9860 as 'm', that will cause below waring: WARNING: unmet direct dependencies detected for PINCTRL_SPRD Depends on [n]: PINCTRL [=y] && OF [=n] && (ARCH_SPRD || COMPILE_TEST [=y]) Selected by [m]: - PINCTRL_SPRD_SC9860 [=m] && PINCTRL [=y] Thus move the configuration dependency under CONFIG_PINCTRL_SPRD_SC9860 to fix the warning. Reported-by: Randy Dunlap Signed-off-by: Baolin Wang --- drivers/pinctrl/sprd/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/sprd/Kconfig b/drivers/pinctrl/sprd/Kconfig index c9e7f0b..eef35d0 100644 --- a/drivers/pinctrl/sprd/Kconfig +++ b/drivers/pinctrl/sprd/Kconfig @@ -4,9 +4,7 @@ # config PINCTRL_SPRD - tristate "Spreadtrum pinctrl driver" - depends on OF - depends on ARCH_SPRD || COMPILE_TEST + tristate select PINMUX select PINCONF select GENERIC_PINCONF @@ -16,6 +14,8 @@ config PINCTRL_SPRD config PINCTRL_SPRD_SC9860 tristate "Spreadtrum SC9860 pinctrl driver" + depends on OF + depends on ARCH_SPRD || COMPILE_TEST select PINCTRL_SPRD help Say Y here to enable Spreadtrum SC9860 pinctrl driver -- 1.9.1