Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1237700ybg; Thu, 11 Jun 2020 04:48:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwRt4c5wEx1U2Ioq0botLQYROl+qDS1a8Hs223LTaFDP7sni4Hf+IHJs40L1UjjdEPi4X2 X-Received: by 2002:a50:f9cc:: with SMTP id a12mr6722944edq.227.1591876107906; Thu, 11 Jun 2020 04:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591876107; cv=none; d=google.com; s=arc-20160816; b=dn0fS2jtp4uaj2vxXYBqU6Tx7jiZyWkYyDE/XM0G5YTtOdPH6BB77WQveJ1A9cZ4hB JYt8E9E+Iun5v2adVdlpgDW8LdM4IZHuMPNJvQE7IbvauRKTo5MhUZWPC3DAICMsXMWd ANVwARUH1SLefcXbceGbApAY4fODLOrSBIkVX0kPxnPU0QpecuQeeZIz5okl0lHuNxdj 9kR2VGfduay78qeyFgp3D1Wjhdl8t+tLCr4YQTM4FYDocR/sMTCrgap6hwLNTG7tqMDC HZVaWQp294bMyVC4La/0Th8bCUlcb3QTisuE6ZzpXitdFMmSIopOJs8q887qw+8ZdIqV 3nrw== 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=Teob4shJ3r1QvWBCbbmO5D9vhupt09l2L6grppfXvyY=; b=Wq/6ZlKFPsYXxdaZ4/9fKBKPB0i4aY0alCuRKH7MLrXIx1tc7d4/hOun+KfHPfL5FE keeZ+1CBwMQRjWMTaQGhDi0+3QxUVMxqwPfwG+iRGVaUvtKdwkOi56Jw08C1tNcb8XzD F/HWb18exBwulRfHujoEG6epvDEloHZMRR8Fnm+YAiam6aiEaThwpsbxF3802ghsx2lQ Nc9AQVGlMcX5BTMnXltSQrd8CgFaLzvBREBHViK2EiWme24ftkkQVfYQiuu07xuJbmOf 1rpi0UZ/D0aCl8Mlm5JeIytQM5vdJpoWyT1HNSwRMRlLm9yw+QD8B3YVxkHqMHGSfjdb q5Zg== 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 l2si1123851ejg.443.2020.06.11.04.48.05; Thu, 11 Jun 2020 04:48:27 -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 S1728004AbgFKLqM (ORCPT + 99 others); Thu, 11 Jun 2020 07:46:12 -0400 Received: from inva020.nxp.com ([92.121.34.13]:38516 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727939AbgFKLqF (ORCPT ); Thu, 11 Jun 2020 07:46:05 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 8AECF1A070E; Thu, 11 Jun 2020 13:46:03 +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 0B52E1A070A; Thu, 11 Jun 2020 13:45:59 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 832E740323; Thu, 11 Jun 2020 19:45:53 +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 9/9] pinctrl: imx8dxl: Support building as module Date: Thu, 11 Jun 2020 19:34:55 +0800 Message-Id: <1591875295-19427-10-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.MX8DXL 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-imx8dxl.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index de8d571..922ae4b 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -167,7 +167,7 @@ config PINCTRL_IMX8QXP Say Y here to enable the imx8qxp pinctrl driver config PINCTRL_IMX8DXL - bool "IMX8DXL pinctrl driver" + tristate "IMX8DXL pinctrl driver" depends on IMX_SCU && ARCH_MXC && ARM64 select PINCTRL_IMX_SCU help diff --git a/drivers/pinctrl/freescale/pinctrl-imx8dxl.c b/drivers/pinctrl/freescale/pinctrl-imx8dxl.c index be3b09e..d3020c0 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx8dxl.c +++ b/drivers/pinctrl/freescale/pinctrl-imx8dxl.c @@ -168,6 +168,7 @@ static const struct of_device_id imx8dxl_pinctrl_of_match[] = { { .compatible = "fsl,imx8dxl-iomuxc", }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, imx8dxl_pinctrl_of_match); static int imx8dxl_pinctrl_probe(struct platform_device *pdev) { @@ -194,3 +195,7 @@ static int __init imx8dxl_pinctrl_init(void) return platform_driver_register(&imx8dxl_pinctrl_driver); } arch_initcall(imx8dxl_pinctrl_init); + +MODULE_AUTHOR("Anson Huang "); +MODULE_DESCRIPTION("NXP i.MX8DXL pinctrl driver"); +MODULE_LICENSE("GPL v2"); -- 2.7.4