Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1237667ybg; Thu, 11 Jun 2020 04:48:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2xEZJ+fbJ0TuS+fpNcqlJwaZHKVlcThc9ZpFO+zTT50HXo0O3UrCoMzZqpweYMSAj5FFW X-Received: by 2002:aa7:c3d7:: with SMTP id l23mr6475134edr.264.1591876103297; Thu, 11 Jun 2020 04:48:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591876103; cv=none; d=google.com; s=arc-20160816; b=zQDt0CygM+qpcGAbg7FBkrs3Vs1RED2hAS6ZUY1dm/dBKO852cTPyDndsiKnJfrO6W 6/rsNR/ohAO54bKjktOZXP2L/9+z3tDEv93/D7iba5osKhy9X3iP2MtUFtQ400vfBuxd jKuJCKPQBL4uj+otOpsDb20LASCowrilrXa7GLM35oTwSTeLqnfsBKCQxGxFx/QVRc9q 3QzfCMUEh4+W1JOVIVdUfGKGMCn7VCiel+dThQqDUtJmMLPaeGt8qs0l4/qaV0X0AJEO gi+IWyj/0QgSpO5jpkPgbhnFae3gqWisJwTKpbc9JxMTNMHz91RPhnlGe1WRjcaz/3MY S7lA== 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=yDnOkxYbDY7eGI3Y6905Cx9yB3t0Kq5mLZrYni7tjTg=; b=vVzc3G0C6Y1jjqPxnmN38tMRpeEO7v6wzvfPh618flq/Cof/TocsLBF4YoqGuEfc6X tAlJkcEX6Dy9jZpq3IM9qTSHwUDYXITyVdvSfSIANyDhTSkfhFXVEWo7bbuEfEF2w5eX JtY6HjG1WUlMecNqrfRuKig6kg+uAAhP9Qt1f0Pdj32sOHWvzkoMIHtQ42T3VXP5w49C X3VgsYFGYS8XG88DtFIrSntYwuKMKVRko5f1XWvi8RfX4YfgDoulnOtmtbevltaMllDB MErkv06gTqlr9MHuQRCcEMjwa0lEtT02F8sIedPdLv77hhC62m6Y8KpiJzKztDIjNSBJ 3/2A== 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 z15si1440618eda.482.2020.06.11.04.48.01; Thu, 11 Jun 2020 04:48:23 -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 S1727097AbgFKLqF (ORCPT + 99 others); Thu, 11 Jun 2020 07:46:05 -0400 Received: from inva020.nxp.com ([92.121.34.13]:38554 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727908AbgFKLqD (ORCPT ); Thu, 11 Jun 2020 07:46:03 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 63E4A1A06F6; Thu, 11 Jun 2020 13:46:01 +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 D7F161A0703; Thu, 11 Jun 2020 13:45:56 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 5B4DE4031B; Thu, 11 Jun 2020 19:45:51 +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 V5 7/9] pinctrl: imx8qxp: Support building as module Date: Thu, 11 Jun 2020 19:34:53 +0800 Message-Id: <1591875295-19427-8-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591875295-19427-1-git-send-email-Anson.Huang@nxp.com> References: <1591875295-19427-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 --- Changes since V4: - remove unnecessary change of replacing arch_initcall() with module_platform_driver(); - add module author and description; - add more details to commit message. --- 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 af28f14..412d581 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -160,7 +160,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 05906b9..6776ad6 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx8qxp.c +++ b/drivers/pinctrl/freescale/pinctrl-imx8qxp.c @@ -207,6 +207,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) { @@ -233,3 +234,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