Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp323229ybt; Tue, 23 Jun 2020 23:36:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzknnqIjfs7BhzzozgFhYd0SOJRV5Qc9hzK3EUaUo8LhZWbLJkMh2JmWl2neyGyFlYyTo8N X-Received: by 2002:a17:906:4f13:: with SMTP id t19mr22683049eju.269.1592980597756; Tue, 23 Jun 2020 23:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592980597; cv=none; d=google.com; s=arc-20160816; b=oHC8aCKMYEiAYVTmAFmb+AzCFllu9PY/KN6J9/iwR1hFaOJ/IMcTGw2y8ktu+WnrjI uFSPAEKrtAjrCxdyUvdBH6nQp+BjePR107Zdx+1djYsBY4QDzmS9P+yEsgA6/PmsI1yz Z339NGXLyEfJBuoqI08oXqTNeNuZ2+u4eHf7lqRBzX35GieIwV9xAXr/gtIIbdSTcWGP BO7NAH9ySpMiboQK7snDR76wqelle2fi/Zvlx1cyz8kQaLtea7ZvG31/d0ObohkEOHT0 8/gNPS0T+UeSv+nBpeZaSoODDZHAVOC4k4h1CSafNLqzHQZcTyU7jmlseKOC/piriyTd Q8rw== 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=eUSnsQEtiXIV20IPTjE/qK86n0I85wnArnI8oJmartQ=; b=kXVBvqYpgqlOpN/Lp19rhmQq+MuWr42OGMnuthoe1Eq4Yd+nORyhoE0DYrvnpmDEl0 6vNa2hfmWfzMUHfKJ71Bx61CGyi0L/uiuKEJcBCm5K+vQnef0q6ycd4I0IY/nhTtnyTC 2LfkIrOsSiN++kN7wGRBxmyLzYjUh0XCHdalLufxZn6klSWqo7GgQkOepNrinp48KCwK Rgm7cKBeRsXu1GhnH2uKo2xWuhVudCuScc8PYIcUAzF7+Rfl/Pqd2kXvfJCsYDJ/OYqC uUKTPQDaLvirbsgGJXafEC86df7ITXDl8F6OsAoKEnZSWoTR1qeQmC82D2XzrQDRi96g wtBw== 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 y9si1851596edw.470.2020.06.23.23.36.14; Tue, 23 Jun 2020 23:36:37 -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 S2389354AbgFXGgA (ORCPT + 99 others); Wed, 24 Jun 2020 02:36:00 -0400 Received: from inva020.nxp.com ([92.121.34.13]:34256 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389327AbgFXGfp (ORCPT ); Wed, 24 Jun 2020 02:35:45 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id B8E5F1A01B7; Wed, 24 Jun 2020 08:35:43 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 37D7A1A01C8; Wed, 24 Jun 2020 08:35:39 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 4C35B40314; Wed, 24 Jun 2020 14:35:30 +0800 (SGT) 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 V6 7/9] pinctrl: imx8qxp: Support building as module Date: Wed, 24 Jun 2020 14:24:02 +0800 Message-Id: <1592979844-18833-8-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1592979844-18833-1-git-send-email-Anson.Huang@nxp.com> References: <1592979844-18833-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 configuration to "tristate", add module device table, author, description and license to support building i.MX8QXP pinctrl driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-imx8qxp.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index 2bf90b3..0a728bb 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -159,7 +159,7 @@ config PINCTRL_IMX8QM Say Y here to enable the imx8qm pinctrl driver config PINCTRL_IMX8QXP - bool "IMX8QXP pinctrl driver" + tristate "IMX8QXP pinctrl driver" depends on IMX_SCU && ARCH_MXC && ARM64 select PINCTRL_IMX_SCU help diff --git a/drivers/pinctrl/freescale/pinctrl-imx8qxp.c b/drivers/pinctrl/freescale/pinctrl-imx8qxp.c index 1131dc3..81ebd4c 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx8qxp.c +++ b/drivers/pinctrl/freescale/pinctrl-imx8qxp.c @@ -204,6 +204,7 @@ static const struct of_device_id imx8qxp_pinctrl_of_match[] = { { .compatible = "fsl,imx8qxp-iomuxc", }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, imx8qxp_pinctrl_of_match); static int imx8qxp_pinctrl_probe(struct platform_device *pdev) { @@ -230,3 +231,7 @@ static int __init imx8qxp_pinctrl_init(void) return platform_driver_register(&imx8qxp_pinctrl_driver); } arch_initcall(imx8qxp_pinctrl_init); + +MODULE_AUTHOR("Aisheng Dong "); +MODULE_DESCRIPTION("NXP i.MX8QXP pinctrl driver"); +MODULE_LICENSE("GPL v2"); -- 2.7.4