Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1238563ybg; Thu, 11 Jun 2020 04:50:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfhYOIjg5hRLDeFLTDJAu7VecIDX+ajPEXheVF9z+Je4WztIFe4Y1tNgP/PYjPWsUYP3Tg X-Received: by 2002:a17:906:48d8:: with SMTP id d24mr7839237ejt.369.1591876207268; Thu, 11 Jun 2020 04:50:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591876207; cv=none; d=google.com; s=arc-20160816; b=nvWYx3I0TUC6cBRfXfe2fDpPWY+y9dpOtjW5UjJ55VqpPy/dVwe6Or0xk+8jP8dImj OqBpQSANZHpNWH6V91dG3HK+NldGDqvchlt3U07ji9ZUUH4AfKCMbKpI9/d7j7LeeD2C D/6FN1ijllODdI3pVJVJ4E70jDhbHnPy3JHuRu1AGUGRiVDyUnvRsGLMRaLCvubsESQp IjTFx/MDFtkaBwQP1rMi6sk0xKmzmnI5p8Q06h5us4Oipz3Zvg/DnXKA05qe50ZHNrHC PXlVQKQaGKIPa4xtCodRG8bcMQjEVSRKGE//HMI3RIHbp0FQBB+kHjksMCtDOLRWm9XF zmPg== 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=Y2AZqgWQbAkUuvt+b4kDaGtCseqxKtPgmYHK6dJDLWM=; b=cqbnomulzJRcHiKH0cAgKFP/LS5Ua9WXWhGM7JS1pnVQRPe1hfLH3F0TzjjgCrE/Rl /BQIxtXxFgYtEx+OqnZs3iinVG5k203SQdg2e3maETRXeZiUHd9z8pzVojpWv6sQeEIY 1zgPBsHuNMosK5q8NyV8G1Lv6Y3HRaP0CtjbmXEqweuKkng2c4fQMKvejf7zHjqLOqER vdN/yQs6KsjiNWEM/HZj5qKTfYIS0X9GmBKfadzskqhmbFnOwgnE+66AmOVWrd4eD8h6 r/KVB4vVxZpTzhJ63v4OEc32RbRdBe7RstqgsyaJkIHd1r08K+InVAEVh0KUTOTKKBIl gEmg== 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 k2si1758835ejk.51.2020.06.11.04.49.44; Thu, 11 Jun 2020 04:50:07 -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 S1728060AbgFKLq0 (ORCPT + 99 others); Thu, 11 Jun 2020 07:46:26 -0400 Received: from inva020.nxp.com ([92.121.34.13]:38476 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727874AbgFKLqB (ORCPT ); Thu, 11 Jun 2020 07:46:01 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3B8561A0719; Thu, 11 Jun 2020 13:45:59 +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 AEF221A06FF; Thu, 11 Jun 2020 13:45:54 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 334D04030C; Thu, 11 Jun 2020 19:45:49 +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 5/9] pinctrl: imx8mq: Support building as module Date: Thu, 11 Jun 2020 19:34:51 +0800 Message-Id: <1591875295-19427-6-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.MX8MQ 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-imx8mq.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index fe3e49c..968c1e9 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -146,7 +146,7 @@ config PINCTRL_IMX8MP Say Y here to enable the imx8mp pinctrl driver config PINCTRL_IMX8MQ - bool "IMX8MQ pinctrl driver" + tristate "IMX8MQ pinctrl driver" depends on ARCH_MXC select PINCTRL_IMX help diff --git a/drivers/pinctrl/freescale/pinctrl-imx8mq.c b/drivers/pinctrl/freescale/pinctrl-imx8mq.c index 50aa1c0..ae3ea5b 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx8mq.c +++ b/drivers/pinctrl/freescale/pinctrl-imx8mq.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -329,6 +330,7 @@ static const struct of_device_id imx8mq_pinctrl_of_match[] = { { .compatible = "fsl,imx8mq-iomuxc", .data = &imx8mq_pinctrl_info, }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, imx8mq_pinctrl_of_match); static int imx8mq_pinctrl_probe(struct platform_device *pdev) { @@ -350,3 +352,7 @@ static int __init imx8mq_pinctrl_init(void) return platform_driver_register(&imx8mq_pinctrl_driver); } arch_initcall(imx8mq_pinctrl_init); + +MODULE_AUTHOR("Lucas Stach "); +MODULE_DESCRIPTION("NXP i.MX8MQ pinctrl driver"); +MODULE_LICENSE("GPL v2"); -- 2.7.4