Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4436416ybg; Mon, 8 Jun 2020 07:50:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpn1GAdlja/bLCXMV5bqRMkDq09o8v3/sjE5EEkBLXbMcKmbvNbLasNQmGuXVM33rSXZqi X-Received: by 2002:a50:d785:: with SMTP id w5mr21664246edi.212.1591627859099; Mon, 08 Jun 2020 07:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591627859; cv=none; d=google.com; s=arc-20160816; b=n5lZsx0mPexC8J1x0wo3mBcMTp+9FzLYo03XNGzLatmfZm8/Dr8gPJs+M1ACsTOpQT SaE2as70abZUdQw8rlqtG/JB7D27qRN/l+1ZtqlI9gKYS0lyYpxHKmtWIgthBJiFybfN abReTfnF4OwaQInuLTPBOdjvhyLwenc2QSnZByYdeE1MINZBeBR3lrbIMFCVRsyhVf1J jSwpBLAB27OufmbnZMO7lP5VryP2nVfDAcXL+WXbeeUpwz4PaL/4eXPtXEgK3o3WyG9D OIe6yY7fEsvA4PxkKupMqTAshu71tzh7sKZAp/AfKUuWHtzzzuWhHK3nlHdiKCsE7VYx AJlQ== 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=3kyWgD/wpcM+t6a7Fs3z4XJ/6benWfdl9dn/NgVMbio=; b=jUBv3+RGZsM3bzlTRXn8piTGdy1C6GfwSg3CWGiqdEDOQQig0tTwnpt8dt6GcHOjO+ UUVJzoh8ENePRtsvPho4cUVdRdCih0BrJ+sDJC3kJaBVuzJ1vU3RmgoKdvq/9VTWZeWG 0oJZFLL5gRPeeJnBK+vei9z+hYlBjE5AvolGJWKVbc6cz79QFDpmdPYMkwQ+NL++ZPGJ EG8k8VwpFNH+mvUY5WOgrPhKCgg+hUGckk9zhO4SFZPLqAGGaUouemrKCtKWYeuTUd/6 GUPgzKX/s+wDVXjrSuveKra2UEsx7Qd84zZpd8NaAwZQg8CWfSTACC1ml0Qoq2Twxspq 19dw== 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 h18si9001053ejf.537.2020.06.08.07.50.36; Mon, 08 Jun 2020 07:50:59 -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 S1730136AbgFHOse (ORCPT + 99 others); Mon, 8 Jun 2020 10:48:34 -0400 Received: from inva021.nxp.com ([92.121.34.21]:38678 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730119AbgFHOsa (ORCPT ); Mon, 8 Jun 2020 10:48:30 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 27861200E4D; Mon, 8 Jun 2020 16:48:28 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 8A7DF200E51; Mon, 8 Jun 2020 16:48:23 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 0E67F40323; Mon, 8 Jun 2020 22:48:17 +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 V2 8/9] pinctrl: imx8qm: Support building as module Date: Mon, 8 Jun 2020 22:37:35 +0800 Message-Id: <1591627056-19022-9-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591627056-19022-1-git-send-email-Anson.Huang@nxp.com> References: <1591627056-19022-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 Support building i.MX8QM pinctrl driver as module. Signed-off-by: Anson Huang --- No changes. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-imx8qm.c | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index 5c9714a..8ab8aa8 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..905702a 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) { @@ -318,9 +319,5 @@ static struct platform_driver imx8qm_pinctrl_driver = { }, .probe = imx8qm_pinctrl_probe, }; - -static int __init imx8qm_pinctrl_init(void) -{ - return platform_driver_register(&imx8qm_pinctrl_driver); -} -arch_initcall(imx8qm_pinctrl_init); +module_platform_driver(imx8qm_pinctrl_driver); +MODULE_LICENSE("GPL v2"); -- 2.7.4