Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1309961ybg; Thu, 11 Jun 2020 06:40:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDhhpGDuH+YjjUBysSRNFd9/+mvcq+hnCnabWMaywrl32tbIj0oc3hQwFZsDQ01Dv6n57w X-Received: by 2002:a17:906:cc85:: with SMTP id oq5mr8156532ejb.142.1591882824757; Thu, 11 Jun 2020 06:40:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591882824; cv=none; d=google.com; s=arc-20160816; b=iggnUE9LWVL9jYQO5FK+DdnpZ1Hvd85URFM/tShzxPlBBSRroP+BKQ7ywIIHTHJLR/ W0ShXLAYXyNNtNqVeXmPVzx2G2ObIv+RfGRrYO/HHX2c9kZIRoehCeg0GEyqztsecSqp 1fkL0GE+pPPxPj8/cSrW9JtbiT1Hgp5rb3zmssJ4Sr05FhMW7LA+o4Bn45N4HNGiDHzn nwUH8dWosZBRrhauNNE/dugVs6e5SO74xnTpK0nRD4f3QpdDiQg0+21robJATo1sbQi/ Rqz/zbtFUxMeM//fM1YbDkEjuY/+jYgKBcdgXA7MeNyzdO27yVAO5w33DVZGFACEUrhj fI8g== 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=4VL0OcqjOWhCkbJzBg+n9nMJRqbsgIYehgJxPy8Mjew=; b=v9XOmF8h78qT3g4/OEMgSRZn8B/wjXt0TZ2pjFwgnVkBrugCk3EELUHBIpHBCvLblU eMSSwdUHsQmiz8DY5i4Wc3X51+YMPpiRu+4WsBIhLa67REwRzlzeZydiNQSfVOjYENPv dmuFm6jblyUBudAsfN1nBpsbzSl+z4DNgFn999w5Nsvmy+ay5Eoi/48SJVDksXFraqKB 8EASoNpj0TZGqCal8MQVSMfPxnXrRGm3anPjUkqYWsyZ/XHcNeg5ohrXju4nqHZ3WPUN dKZW+wUp9YyKEFSHU96AxeIGxBk9hjfgaeEkh7FJPJs74h9aKeclKzxzpOiaIHw+c4w0 QNqg== 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 bu21si1984539ejb.675.2020.06.11.06.40.01; Thu, 11 Jun 2020 06:40:24 -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 S1728023AbgFKLqO (ORCPT + 99 others); Thu, 11 Jun 2020 07:46:14 -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 S1727916AbgFKLqE (ORCPT ); Thu, 11 Jun 2020 07:46:04 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id D1AE21A17C6; Thu, 11 Jun 2020 13:46:02 +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 4E55C1A070F; Thu, 11 Jun 2020 13:45:58 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 6F33340307; Thu, 11 Jun 2020 19:45:52 +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 8/9] pinctrl: imx8qm: Support building as module Date: Thu, 11 Jun 2020 19:34:54 +0800 Message-Id: <1591875295-19427-9-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.MX8QM 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-imx8qm.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index 412d581..de8d571 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -153,7 +153,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 9ba3249..8f46b940 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx8qm.c +++ b/drivers/pinctrl/freescale/pinctrl-imx8qm.c @@ -301,6 +301,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) { @@ -327,3 +328,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