Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1238060ybg; Thu, 11 Jun 2020 04:49:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyTmu/tWTBDylSHElCQU3dADOnblUy0UYRk/ur9qXm1rzTFlrEv3PYlC6YgqEmXFaIueyL X-Received: by 2002:a17:906:46d0:: with SMTP id k16mr7920152ejs.76.1591876148566; Thu, 11 Jun 2020 04:49:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591876148; cv=none; d=google.com; s=arc-20160816; b=QO5DPDTImonPLvVGJlCilGNkKvyWIDFiLo0PQvqp9NnGXMKXiQM/19LuaTpoYSW3EJ oy+ifdYk4EzHR//u+bE4lI2Vd9Tv48Gt+6f+h2T+SLetR/pCI509Gde8/t0Cl7pkklob XxofFzaXQJJuJSmUyqym/yKyK/fPC5fDGyLlznpL9UKxmhp/oski00FErcLG66jr0Zdm 6AS0IGTRBa26AWU72c6W6Qx91cEi9YBRrlK7DEJ2eA93WB4b1J63vxIhjUMLcNYhzpv6 UWl6IP7ReYgn8D1mF1RiPHjjEvi9T6jCq0a5abfJ2TIwfASFYHKEYt+3Xsp22tdhW/GZ kxpg== 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=ZvYK/ZhY66Os33tb6kAVRk5te7v216uzW0svBgEnugI=; b=uteMjfHjkV7CCBwayZgLjkS2tnB7ZaMqv54EYT8CNUFWaK+rYqdjkg3CxhEGdGblZ3 e0aOhIktTbrrU96VgWvrA2bmcETVcd2GCUSMe1Ty1X0wenz8M6UkidHC+uwJ1ACd+JG7 q8rRdenE/W6HBxRArtXT3klybfowF9UGw8kFcc6Xh2N/PxevPmY2nFgsV6ujvzPpaE4v VtOidvmqFuCS6lrADZBGf1zJHaHzPCm129O6tgZ1S16tmJ1T+KtBiiRL7fESmGn+zaQ5 GEQ5c1YBUCHvgbVwsB1iJht9k8S1jpAgMgK8tqnNsXmH9kbNIElrOBPUjDW8QceITq6P cgaQ== 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 dk19si1393304edb.446.2020.06.11.04.48.46; Thu, 11 Jun 2020 04:49:08 -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 S1727932AbgFKLqD (ORCPT + 99 others); Thu, 11 Jun 2020 07:46:03 -0400 Received: from inva021.nxp.com ([92.121.34.21]:33068 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727849AbgFKLqA (ORCPT ); Thu, 11 Jun 2020 07:46:00 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 7FC192006D3; Thu, 11 Jun 2020 13:45:58 +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 F33662006CE; Thu, 11 Jun 2020 13:45:53 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 1EF8D402D3; Thu, 11 Jun 2020 19:45:48 +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 4/9] pinctrl: imx8mn: Support building as module Date: Thu, 11 Jun 2020 19:34:50 +0800 Message-Id: <1591875295-19427-5-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.MX8MN 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-imx8mn.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index 556adc3..fe3e49c 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -132,7 +132,7 @@ config PINCTRL_IMX8MM Say Y here to enable the imx8mm pinctrl driver config PINCTRL_IMX8MN - bool "IMX8MN pinctrl driver" + tristate "IMX8MN pinctrl driver" depends on ARCH_MXC select PINCTRL_IMX help diff --git a/drivers/pinctrl/freescale/pinctrl-imx8mn.c b/drivers/pinctrl/freescale/pinctrl-imx8mn.c index 100ed8c..14c9deb 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx8mn.c +++ b/drivers/pinctrl/freescale/pinctrl-imx8mn.c @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -326,6 +327,7 @@ static const struct of_device_id imx8mn_pinctrl_of_match[] = { { .compatible = "fsl,imx8mn-iomuxc", .data = &imx8mn_pinctrl_info, }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, imx8mn_pinctrl_of_match); static int imx8mn_pinctrl_probe(struct platform_device *pdev) { @@ -346,3 +348,7 @@ static int __init imx8mn_pinctrl_init(void) return platform_driver_register(&imx8mn_pinctrl_driver); } arch_initcall(imx8mn_pinctrl_init); + +MODULE_AUTHOR("Anson Huang "); +MODULE_DESCRIPTION("NXP i.MX8MN pinctrl driver"); +MODULE_LICENSE("GPL v2"); -- 2.7.4