Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp323065ybt; Tue, 23 Jun 2020 23:36:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLl5Z187F57TPdBtmdPireadZnyzNNMAxO9nR/xrgyYhfTSFQ0j5sMtBeSxtPVQVrMddoC X-Received: by 2002:a17:906:6403:: with SMTP id d3mr23053491ejm.386.1592980577547; Tue, 23 Jun 2020 23:36:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592980577; cv=none; d=google.com; s=arc-20160816; b=g/FgKN3CpyNiT73MmCoauSoWBt9nBx4x7OHCr7LkWrsDOGNZvqFdslLIxHk3m9W237 /KZenu5ZiZujMYV0+KSt1loic03WXpgkvJDz6YzZdFVdgvbRApFVbBnSPojKh3OtLH1h nwCc+N6b5JyRRu8DI+G9d16eu1V40P6WnAxTkw7ziyB0LoWBkKHx9Vd7rX5rcJo/fe/8 Q4itS3GrKg235eNErbYcwF74xHlMRRhQe/rfEbY5B4bd6RJsR1IRJybIkd4TDCxv6bNR U1hX0SqM57XYzCoRwcia/O4vLVAnVHc1BRgTu7yXmrzrH/PK3J24qHvn49eehYYFj8V8 k2qg== 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=NlllOranjCzVXDF3M2HC4exG/MFyraZJ2HSlROEyVlI=; b=PPb4yS7W1UhGTW00WsAI0leU2O4aN3bxgxy6K4+rU7mH6cZrysUX6SN2cbGId/OvwQ bO3zBPS7VXMgRUF9IPtJji5RGuzQefQ8kmnfIxKCZDrqMyjbr5EOchOS5r6oTrlpOCr/ oFLvbTg6S9/vNMfoGe25/MM6JCufGPf0KKLPONC5XGlFh18JZq4KuFQUuvrcr7Ey6oGD qCpxHuMbDX8W2hD77qsAElOLTk+HawOWg+IOJLsFlzNRj/iCktIIJQXSlYyBahZPhKq6 eCLPv2e0nB8StX0qs/UkRbQLLvQRCCFBCGsWO6IpYKuhpyXmVpEfuxZjew1bfFqZYseX qTrw== 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 d21si7620203ejt.197.2020.06.23.23.35.54; Tue, 23 Jun 2020 23:36:17 -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 S2389200AbgFXGfq (ORCPT + 99 others); Wed, 24 Jun 2020 02:35:46 -0400 Received: from inva020.nxp.com ([92.121.34.13]:34218 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389323AbgFXGfo (ORCPT ); Wed, 24 Jun 2020 02:35:44 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 7965C1A111A; Wed, 24 Jun 2020 08:35:42 +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 EDBC21A01B7; Wed, 24 Jun 2020 08:35:37 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 21999402ED; Wed, 24 Jun 2020 14:35:28 +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 5/9] pinctrl: imx8mq: Support building as module Date: Wed, 24 Jun 2020 14:24:00 +0800 Message-Id: <1592979844-18833-6-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.MX8MQ pinctrl driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-imx8mq.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index b909719..df77e752 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -145,7 +145,7 @@ config PINCTRL_IMX8MP Say Y here to enable the imx8mp pinctrl driver config PINCTRL_IMX8MQ - bool "IMX8MQ pinctrl driver" + tristate "IMX8MQ pinctrl driver" depends on ARCH_MXC select PINCTRL_IMX help diff --git a/drivers/pinctrl/freescale/pinctrl-imx8mq.c b/drivers/pinctrl/freescale/pinctrl-imx8mq.c index 50aa1c0..ae3ea5b 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx8mq.c +++ b/drivers/pinctrl/freescale/pinctrl-imx8mq.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -329,6 +330,7 @@ static const struct of_device_id imx8mq_pinctrl_of_match[] = { { .compatible = "fsl,imx8mq-iomuxc", .data = &imx8mq_pinctrl_info, }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, imx8mq_pinctrl_of_match); static int imx8mq_pinctrl_probe(struct platform_device *pdev) { @@ -350,3 +352,7 @@ static int __init imx8mq_pinctrl_init(void) return platform_driver_register(&imx8mq_pinctrl_driver); } arch_initcall(imx8mq_pinctrl_init); + +MODULE_AUTHOR("Lucas Stach "); +MODULE_DESCRIPTION("NXP i.MX8MQ pinctrl driver"); +MODULE_LICENSE("GPL v2"); -- 2.7.4