Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1238709ybg; Thu, 11 Jun 2020 04:50:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytUrK4QqYE8ZDYktfFmdk8dnb4quH+dIzKEOhrNbxfTCz32slzndiM+Goz2MOgs+s941Pl X-Received: by 2002:a17:906:7f05:: with SMTP id d5mr7839653ejr.70.1591876222140; Thu, 11 Jun 2020 04:50:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591876222; cv=none; d=google.com; s=arc-20160816; b=mE4W1yVH/WX9TOhHtF6AqSVV7/RpkNP/5/wq4gNfPWUTw/eGNtR51Pbq2+S9a3FDTa n1CZMgMJvRk7s2+8hc+zk/131+nzk4TKNCdjq2cA5qCn37qWf6PoOH8K3p8ZKQLLCL0d jn3wQXzLpLyvbTCF85p8H6vO8gEmCnS1OMGMWIQ7ALIowC14fOGuysXsyq6UJVTTl0fA MvTZCa4psVpih4hWSMxuJWON2QRu3LPgxlbkx1zoMZNkaBthiCPIpBK2G3QDIjKF2uW2 hwA0lWqMo1cyB2XZyLIMQK0FvXqV6BCu3F+VfRFKSG22iATeKFcjFTHpvwDhsxIyglUH hO1A== 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=elfkFjnq+W30avz+kiGIYMaizK+7db8DkTshnRb3EMg=; b=yfdVJJ3aiP0AMgLRSlwdG3D1qL5lEYO+DEew2hp1oe+2Vyq3p17vlXQk90dRUX5tIV mY6DWVcyLCKBST24nREn8hIcDq3YI7O4g73WHkQb8h1buOHZ6UZUR2oAA4haMie1jAQS vZoMFvNsLYXUXPCv42otDhgxiI2cmXeaFc56+14Q8OU9C6HM+X37onnQQ9lw0loQFVQy tX4L2uUl76T2Dv8Sc1sLAPqC45msRXzbK9eAWm3WFDvZa1qXz1xSCwB//ndLXJUoHmiX OWU2BDP4Fvzs3Kx1gMeloKag2DXCKtFxxDm/JZezKWAXuqukVzXJIs5vRoddH4CGWe49 Lrmw== 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 ba16si1599842edb.52.2020.06.11.04.49.59; Thu, 11 Jun 2020 04:50:22 -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 S1728074AbgFKLqd (ORCPT + 99 others); Thu, 11 Jun 2020 07:46:33 -0400 Received: from inva020.nxp.com ([92.121.34.13]:38410 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727848AbgFKLp7 (ORCPT ); Thu, 11 Jun 2020 07:45:59 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 125F91A0715; Thu, 11 Jun 2020 13:45:57 +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 8671E1A0717; Thu, 11 Jun 2020 13:45:52 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 061E7402FF; Thu, 11 Jun 2020 19:45:46 +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 3/9] pinctrl: imx8mm: Support building as module Date: Thu, 11 Jun 2020 19:34:49 +0800 Message-Id: <1591875295-19427-4-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.MX8MM 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-imx8mm.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index e281c3f..556adc3 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -125,7 +125,7 @@ config PINCTRL_IMX7ULP Say Y here to enable the imx7ulp pinctrl driver config PINCTRL_IMX8MM - bool "IMX8MM pinctrl driver" + tristate "IMX8MM pinctrl driver" depends on ARCH_MXC select PINCTRL_IMX help diff --git a/drivers/pinctrl/freescale/pinctrl-imx8mm.c b/drivers/pinctrl/freescale/pinctrl-imx8mm.c index 6d1038a..31c5d88 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx8mm.c +++ b/drivers/pinctrl/freescale/pinctrl-imx8mm.c @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -326,6 +327,7 @@ static const struct of_device_id imx8mm_pinctrl_of_match[] = { { .compatible = "fsl,imx8mm-iomuxc", .data = &imx8mm_pinctrl_info, }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, imx8mm_pinctrl_of_match); static int imx8mm_pinctrl_probe(struct platform_device *pdev) { @@ -346,3 +348,7 @@ static int __init imx8mm_pinctrl_init(void) return platform_driver_register(&imx8mm_pinctrl_driver); } arch_initcall(imx8mm_pinctrl_init); + +MODULE_AUTHOR("Bai Ping "); +MODULE_DESCRIPTION("NXP i.MX8MM pinctrl driver"); +MODULE_LICENSE("GPL v2"); -- 2.7.4