Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp323082ybt; Tue, 23 Jun 2020 23:36:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrKVcXx/pG+2LPoefL6isiC3ybs5fG1BaqahTRxU9rBGErDx/kBzVT4W4DUMDpDMy24pSB X-Received: by 2002:a17:906:5959:: with SMTP id g25mr558715ejr.216.1592980579118; Tue, 23 Jun 2020 23:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592980579; cv=none; d=google.com; s=arc-20160816; b=PapDJgbZqKbVKvrisPbhDzBu3mL4AEz0Wb1ZhvcsiO/kinifMl7PuYLNu7bwVGluTH VaJRVEUKG1Spc/16Bpu84CFGgNAHcx86daX3fkQEq3gU6ZrS4AeN7mbLlHa1ZdZrFG+y 4zvhXuJc++fQWBt7T8VzCwf0Lx7B4TrjcJEXASEQs9UiXd1V6wM0f7+gYjZmhR8+I0ku kVpT3QJpNgpepYPbUVEU/M41rhaBYukQ+ZLkQdtr6EInyHZNyvsM33YvSqCqZ8ONXz3b cJWrE2bwK2RGqRbVgh30T7F0aA/5IeY/uOysBqUOk1Qnq0gW5yXAb/lVyxIajTO5z4q+ PZYg== 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=1WG5A95HLBQ/se+lPZbxH6A2YdpVjNfp0y15pvPsbLg=; b=rPxGAWYmJbVwzLAgqmYyeP8zBEAi8NQ4VyMml4qy3P/ud2konP5Y8R+4osXC5wZH7/ O5kmlsoPpllY5fvZZ65a4TDK3fhdgqRrWk4tt2sdUnrNDlQPO9t6kZiA3gpbxqPb8nyW bXVQp96XxBoJFxLvvDMBRPACfQzGs3hkNo3faReMKdLORueodFmdAriXOyVS/Eh32myy vXt5ZejxF0z0UQnwzlots1GiQdXHEzY8Bg+1t04tO/sQhHm/bHp1pDQGrcHsSj7K+tFz kYXPKDNZuyoKNC/ql+gSJvcrLf5iRPfUGjoA1rBSUPHBDxxSrUFiBcRO7S/lzdzpB0lP qwKg== 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 bs16si13142683edb.197.2020.06.23.23.35.55; Tue, 23 Jun 2020 23:36:19 -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 S2389338AbgFXGfu (ORCPT + 99 others); Wed, 24 Jun 2020 02:35:50 -0400 Received: from inva020.nxp.com ([92.121.34.13]:34290 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389190AbgFXGfr (ORCPT ); Wed, 24 Jun 2020 02:35:47 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id C91121A11C0; Wed, 24 Jun 2020 08:35:44 +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 493901A10F4; Wed, 24 Jun 2020 08:35:40 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 6176E40319; Wed, 24 Jun 2020 14:35:31 +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 8/9] pinctrl: imx8qm: Support building as module Date: Wed, 24 Jun 2020 14:24:03 +0800 Message-Id: <1592979844-18833-9-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.MX8QM pinctrl driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-imx8qm.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index 0a728bb..d9fb5f2 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -152,7 +152,7 @@ config PINCTRL_IMX8MQ Say Y here to enable the imx8mq pinctrl driver config PINCTRL_IMX8QM - bool "IMX8QM pinctrl driver" + tristate "IMX8QM pinctrl driver" depends on IMX_SCU && ARCH_MXC && ARM64 select PINCTRL_IMX_SCU help diff --git a/drivers/pinctrl/freescale/pinctrl-imx8qm.c b/drivers/pinctrl/freescale/pinctrl-imx8qm.c index 0b6029b..095acf4 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx8qm.c +++ b/drivers/pinctrl/freescale/pinctrl-imx8qm.c @@ -298,6 +298,7 @@ static const struct of_device_id imx8qm_pinctrl_of_match[] = { { .compatible = "fsl,imx8qm-iomuxc", }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, imx8qm_pinctrl_of_match); static int imx8qm_pinctrl_probe(struct platform_device *pdev) { @@ -324,3 +325,7 @@ static int __init imx8qm_pinctrl_init(void) return platform_driver_register(&imx8qm_pinctrl_driver); } arch_initcall(imx8qm_pinctrl_init); + +MODULE_AUTHOR("Aisheng Dong "); +MODULE_DESCRIPTION("NXP i.MX8QM pinctrl driver"); +MODULE_LICENSE("GPL v2"); -- 2.7.4