Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp324014ybt; Tue, 23 Jun 2020 23:38:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwM/wtjLzvjs2hn7Kc4N+RTrUx/X4KFsmwZ0ByysP4KKwceGD67Bmkm2TfzOGaQi2fT9VCQ X-Received: by 2002:a05:6402:17c5:: with SMTP id s5mr10549768edy.358.1592980688389; Tue, 23 Jun 2020 23:38:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592980688; cv=none; d=google.com; s=arc-20160816; b=AS+CTmTopfefawCHG5H5eTcH010c3fCM7WwBGKJS3/1fhHaxo2U3FIrT+oVVNgCyYs bhEiBRCWgiTcvX3UKiHs7l/CpZ4IjrIMyj/YLEzIGklNFghpTIAj1BbQXG5hue2qcGaA lFs5mn4p1YZrcD1u5YAAIMgqurXQ5WKn0qULZ6/KmmikGdYEpVJqwpuPY0C2oBndw+OF d4paGaiFkUBbWaS8dDtkQ/ZnmcrmMw4pZnp5iTvjRtEHmdjne+r6DZEJGdumy5OiRdmr Nk/JEXrQj6yugZtjYCqVOAIut7tcsfuIZTz7ovgMJOir08CIR8ekKW3WksDIITYEzWl8 zapQ== 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=PaozAYEpf3cq0Bk+98Hlg+NJefQaF7Ncpf7OilMxiaw=; b=KTAYLRHLVlhHiGhNgPGSx+L7oKk4FzljtQTTd21ZQaK6+qoq60yNj7lWt05ykLijiH SGDAGc7w+K13Q7DuzV7V1JHXrDEuvSslYSD4OChEnRW1x4PfClmaYo8BE9JoPlXKK0/p 2rfXWpvR6MwKD0muNVvsuXNeW6EIJESdWX3wv1pg2GCXDbCnLoFUCR0JwrzD86iApRzY UG1LfXc/BIzg0KKORDd/utahvmBpEy7ktsP/Zjp7f/cbQ0//0XJadMwh+2sXQyIjWie/ UmbYTtLQhevI9FdrujqWbdexmWC5ACmUz+sKYvMyitwWRdLbwXfYmoRngIzeL18y4yzX 8KIA== 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 y66si13188547ede.453.2020.06.23.23.37.45; Tue, 23 Jun 2020 23:38: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 S2389219AbgFXGfn (ORCPT + 99 others); Wed, 24 Jun 2020 02:35:43 -0400 Received: from inva020.nxp.com ([92.121.34.13]:34150 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389190AbgFXGfi (ORCPT ); Wed, 24 Jun 2020 02:35:38 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 5CADA1A111E; Wed, 24 Jun 2020 08:35:36 +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 D00B01A10F4; Wed, 24 Jun 2020 08:35:31 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id EB7AB402DB; Wed, 24 Jun 2020 14:35:25 +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 V6 3/9] pinctrl: imx8mm: Support building as module Date: Wed, 24 Jun 2020 14:23:58 +0800 Message-Id: <1592979844-18833-4-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1592979844-18833-1-git-send-email-Anson.Huang@nxp.com> References: <1592979844-18833-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 --- No change. --- 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 4ca44dd..3681c4d 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -124,7 +124,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