Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp323095ybt; Tue, 23 Jun 2020 23:36:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwheSjNybDgr4DmyLrG+3XsXqpuyIIwGi3jCVsypYSf26Tgk8kFV6vxIYf0D3gw6eIIJG7h X-Received: by 2002:aa7:d8c2:: with SMTP id k2mr15191078eds.346.1592980580529; Tue, 23 Jun 2020 23:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592980580; cv=none; d=google.com; s=arc-20160816; b=OLpryQNod1NLa/QA6sOUb0VBgaj5ktUFGtD1VEW13ir2BJL8YWC8MkBzFs6UeedL7u Iayc1/HAXL3PkVfkmEkjzWfCghCVILcLIWag8qr7ruRIxbpK2jFpzueOSFjAVS5D3nMm 3UPhpg6YZ1hJXt3Hf1rMy0Y63R111k1/4UlPNY/WJdss2WwDxhL+pjKhsEyVNjGaA4CF KrSgze1BaPoe+f/4s5A9iyuqT9R2hb6i7RNIoig61i3xIlbriV+wMsbc/Np3CJUoykKE +jU7B/FpvBmftQIkX7/DE/pyn3op099Yb41eKMCM/gdSzSJTY8S2a68YstTx2Cev15PN he3A== 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=x+zlwHfry5jsJ8gFLEoeQQ5LbP8U5t8rsnuaZfCWpJk=; b=pelUjQQrXmkg6uXDKIcMFBdjZ+zqT2d5q+K5iits8hLQMmXISNwcnQ+60/N0vT3SlR /ETSSGGN6zokH13wDBxVoPXcCTsZKrJcC6nJF36W+XavJs9P9P3Lm9uYUXqV6xG+cTVm 7yvaVmzGYEeO6rWzgd/PF8ofJFPGKFNUUgocuH+aoi7X/JmGXOKPeIQKX6r5+JuOva9z WNvhvBHe/2KdRznv9jpMEqHzjQpBcmt13fciBWz6yWEFk192QR21EH1cU68jsede9z74 4DTKCS2UN/Zs1/SivqkzkDxBv/x9njk9JkHZT0NU2koyshKSNFfUEESI+16jFTL3crbV cyyw== 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 f13si7856892edy.576.2020.06.23.23.35.57; Tue, 23 Jun 2020 23:36:20 -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 S2389346AbgFXGfw (ORCPT + 99 others); Wed, 24 Jun 2020 02:35:52 -0400 Received: from inva020.nxp.com ([92.121.34.13]:34308 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389330AbgFXGfr (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 D18201A11D8; 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 4F8511A111E; 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 76F074031B; Wed, 24 Jun 2020 14:35:32 +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 9/9] pinctrl: imx8dxl: Support building as module Date: Wed, 24 Jun 2020 14:24:04 +0800 Message-Id: <1592979844-18833-10-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.MX8DXL pinctrl driver as module. Signed-off-by: Anson Huang --- No change. --- 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 d9fb5f2..08fcf5c 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -166,7 +166,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 7f32e57..12b97da 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx8dxl.c +++ b/drivers/pinctrl/freescale/pinctrl-imx8dxl.c @@ -165,6 +165,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) { @@ -191,3 +192,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