Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1238180ybg; Thu, 11 Jun 2020 04:49:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBE+p040IoM4QeFebqJUQdhsxAStCD/RL6mMcYyccZ626oi05hyVH8pSYY3SHN/5h5gRgz X-Received: by 2002:aa7:ccc2:: with SMTP id y2mr6445944edt.97.1591876160659; Thu, 11 Jun 2020 04:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591876160; cv=none; d=google.com; s=arc-20160816; b=nghMd+TOnVeOgzLqj7gBuIFTZoVqKXNdbOqLt3OgrQr56r8chLs22ddxIFFh95kFD6 H/YLVRBhDCn/4CkjwL/0wdx1EJ+8QqMuEHiK4Z+KIe6domw1BAK22QGGXYZMi5x73Cag wi8otn1z+J8MCuOicxeTza+gtF794Ocl6zY64U0byrjBP+uHg/1nx5EvOgVPM1yZAuc9 1yN+Z9V0zGNexG3Pek4cCzhLwPkhOg3v6mYqr/7dXWR27WHUMJdWJhcSnHSrfWm3Fm76 mpRJhahNXCjMdVFhLM8f4tBA/xjejW7hbGDW9ITcRIb+WcbacKdSeEQO7l3TILEm/stW yAMw== 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=IfeWQM/9zzcW0NDNs08JQPxLea3Q4vFOuLF5/wbiX+o=; b=PChPZVo9fzGBTL8YXQyYyZJI47U7IxoXZiuziPNsVmtJgq283sTfaqHRjnYvzStXZe TxaeEg1VABkkG1XEQVFGY7YtQzjUPTFwiLh5+EwHVwUb1UJWHPgMdlS7VwSXMX1uWDv+ WWGk0XvH0966tQ6LXrOuURXZtUZCvdp5QUYGV2BFmUGAgzYDD3JYzxzgE5XGD1DyIN1x VOZh4Kk/lhekbGfgkN9anwE4lG4LqYnkV+BBZG3nd8/2u6th4cFbSWRN+sJ3l2Pe9UGv C1xTBp3WOsXHpGzNIwLQDfh2x55SCgElXEtTkB1ndpEcqpmH2e5E5otmUBMJFQIL5eTD z8JQ== 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 e3si1827422ejh.143.2020.06.11.04.48.58; Thu, 11 Jun 2020 04:49:20 -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 S1728045AbgFKLqV (ORCPT + 99 others); Thu, 11 Jun 2020 07:46:21 -0400 Received: from inva020.nxp.com ([92.121.34.13]:38516 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727907AbgFKLqD (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 A5F591A0713; Thu, 11 Jun 2020 13:46:00 +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 25A971A06F6; 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 474F8402FB; Thu, 11 Jun 2020 19:45:50 +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 6/9] pinctrl: imx8mp: Support building as module Date: Thu, 11 Jun 2020 19:34:52 +0800 Message-Id: <1591875295-19427-7-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.MX8MP 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-imx8mp.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index 968c1e9..af28f14 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -139,7 +139,7 @@ config PINCTRL_IMX8MN Say Y here to enable the imx8mn pinctrl driver config PINCTRL_IMX8MP - bool "IMX8MP pinctrl driver" + tristate "IMX8MP pinctrl driver" depends on ARCH_MXC select PINCTRL_IMX help diff --git a/drivers/pinctrl/freescale/pinctrl-imx8mp.c b/drivers/pinctrl/freescale/pinctrl-imx8mp.c index e3f644c..bf4bbb5 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx8mp.c +++ b/drivers/pinctrl/freescale/pinctrl-imx8mp.c @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -324,6 +325,7 @@ static const struct of_device_id imx8mp_pinctrl_of_match[] = { { .compatible = "fsl,imx8mp-iomuxc", .data = &imx8mp_pinctrl_info, }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, imx8mp_pinctrl_of_match); static int imx8mp_pinctrl_probe(struct platform_device *pdev) { @@ -343,3 +345,7 @@ static int __init imx8mp_pinctrl_init(void) return platform_driver_register(&imx8mp_pinctrl_driver); } arch_initcall(imx8mp_pinctrl_init); + +MODULE_AUTHOR("Anson Huang "); +MODULE_DESCRIPTION("NXP i.MX8MP pinctrl driver"); +MODULE_LICENSE("GPL v2"); -- 2.7.4