Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3728826pxk; Tue, 8 Sep 2020 00:20:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9Eg1RDsxxltD2Alm3bYltDfBTixK4vYCCOJOKuWwluqWn8uyt8yZVARfyDz+63MnmFsWJ X-Received: by 2002:a17:906:7856:: with SMTP id p22mr23952605ejm.262.1599549602226; Tue, 08 Sep 2020 00:20:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599549602; cv=none; d=google.com; s=arc-20160816; b=FL3g5axc4WzQXZFLtd4IvO1dAoPHPJY1oMrFclO2c8vVamzzNRisb4SAzjd3Iw6pWB vGjCooj25wixnpKUxtOAIR8ju7S37o3zanMhgDhPfNsYj9/dSaofvKzjL5QffrjeZP/8 spksGlhVoYCAO3vDtNrt1VPJHclNe/5bdN+GlBA9776wLOX7QC4MjuH4JyMRgV7zEV/8 r5I5ho1btpxMO+KXAaGs//w8YYCJLKE5Eu1ivmHriRVwcvGn8Uh99t7Z1urxJF20whOf eFaPtl9u93lvtgxP2z0lHdeEjcRaX7H3iZWnbmoWPhPrlJDCUm97+yzD0n/EfAXuFiHh WBSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=qtm8pvnwNO+RcmTgsi2HdULpOQbKxpgsPFWk4PxdLsM=; b=iIf3/n8nTmQ9FAM/7bKzEd2mWQTFAG6ZDxO6K8/DccgQ/6slq2tcN805qxJEEajlUf vtD2DEJg5HWK8VkqXIcdmZxxj3Y4t4FOUW2/csLDOKg7RRl+r05sNAeVj7iR2mEMdFxV 3R/BJBpJLhrK879V+j4X5jLaE0t4rOVp6FE5KWE9ZiGmEWhV0AjwTlZ3TeH0OgjLhz2+ REIzhxBpopAHGpCUJ404xz59EasY1ldhSkiMXR35Tvk/XIjX5bgq/W/KTF0ZyPqyUt1i yMnAAPLPQYLuBvpaZ5ThZbzxobt4J3CHG56eKdeUP0vXSFKW8RMLejjwGtMCCMCG1oLI jAHg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u30si11544990edd.21.2020.09.08.00.19.40; Tue, 08 Sep 2020 00:20:02 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729395AbgIHHSi (ORCPT + 99 others); Tue, 8 Sep 2020 03:18:38 -0400 Received: from inva021.nxp.com ([92.121.34.21]:51482 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729386AbgIHHSe (ORCPT ); Tue, 8 Sep 2020 03:18:34 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 21B0F200217; Tue, 8 Sep 2020 09:18:32 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 9DC7420022A; Tue, 8 Sep 2020 09:18:27 +0200 (CEST) Received: from 10.192.242.69 (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C30B4402DF; Tue, 8 Sep 2020 09:18:21 +0200 (CEST) From: Anson Huang To: aisheng.dong@nxp.com, festevam@gmail.com, shawnguo@kernel.org, stefan@agner.ch, kernel@pengutronix.de, linus.walleij@linaro.org, s.hauer@pengutronix.de, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Linux-imx@nxp.com Subject: [PATCH V3 3/3] pinctrl: imx: Support building i.MX pinctrl core driver as module Date: Tue, 8 Sep 2020 15:12:06 +0800 Message-Id: <1599549126-17413-3-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1599549126-17413-1-git-send-email-Anson.Huang@nxp.com> References: <1599549126-17413-1-git-send-email-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change PINCTRL_IMX to tristate to support loadable module build. And i.MX common pinctrl driver should depend on CONFIG_OF to make sure no build error when i.MX common pinctrl driver is enabled for different architectures without CONFIG_OF. Also add module author, description and license. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- no change. --- drivers/pinctrl/freescale/Kconfig | 3 ++- drivers/pinctrl/freescale/pinctrl-imx.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index 452c499..0058d3a 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config PINCTRL_IMX - bool + tristate "IMX pinctrl core driver" + depends on OF select GENERIC_PINCTRL_GROUPS select GENERIC_PINMUX_FUNCTIONS select GENERIC_PINCONF diff --git a/drivers/pinctrl/freescale/pinctrl-imx.c b/drivers/pinctrl/freescale/pinctrl-imx.c index b80c450..daf28bc 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx.c +++ b/drivers/pinctrl/freescale/pinctrl-imx.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -898,3 +899,7 @@ const struct dev_pm_ops imx_pinctrl_pm_ops = { imx_pinctrl_resume) }; EXPORT_SYMBOL_GPL(imx_pinctrl_pm_ops); + +MODULE_AUTHOR("Dong Aisheng "); +MODULE_DESCRIPTION("NXP i.MX common pinctrl driver"); +MODULE_LICENSE("GPL v2"); -- 2.7.4