Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4437288ybg; Mon, 8 Jun 2020 07:52:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfGUBddq/owfxy7O9N0saKpAnhjZnRJsoROeE+tD8gpibLTHJzLOG+2QOJpmhF7F9T62nu X-Received: by 2002:a17:906:2c44:: with SMTP id f4mr3182269ejh.183.1591627935995; Mon, 08 Jun 2020 07:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591627935; cv=none; d=google.com; s=arc-20160816; b=zKnAOqGQl1re8HXet4yCImV377tDEVCTD+UceRi2CPp9H8sJmGPXzLEFSzA7h7J7F0 eDxEOFtsKx31HewYfKgvkzGyRMb9qfliA5wScDE7uRxaNHvsRrDymOiG1PGo9WT9LqEy Sfyt8n8MkarkLMD/KQLltoqxMT1tDwtSQ0n5XzmFHV+bcNM+khAWNuOFg6qBlRTy+JjH 4ySaLaWXTRi8bl5IqjD6SaHXpReCGZ1lRGoJWo8jNGYgA0oA9G2isLikdbfUjHHesDCZ NLiT+kJhjzSFIS+qMLndR4Z7uKsWpZVlWwiEMMoSkdq17rX1FlNHgij1d3zFxinLXDMV Gblg== 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=T3VIkE/VoezR3WsUnOLX6ehrbeBqIRjSj/1/cJwPNGE=; b=jogb837ZF34LbSY3UvhQhErP+EAgkh9QnGjdZFYoWuhaRZLvl9uPu5GYMsDxv/X1gS UaZUp9fK5xuFY579Y9HV8yAorLhEXIojS6jLjVOxix4Xc1C149KIqBPHobPeeZwEmH2g uZONg7a73aCjjhe6Qy1eAgp4+87H5RxHryqiUHpwy3sCTZmjRBbu6DaX6H8CIWnfcRYJ 81n70QtRtg76jIfu8g19MBaLbUCrarzDwzTSBFlrzVPm+7V8aL+9q0JtUGH/ne6r47GV PbTKLIeCAVsshD8wi5lWP9yQklFMrPsBzMRdqxYCZu/qyKzMuOHSdC2v269J/FSqdTo8 Bhkg== 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 b11si8732524edw.203.2020.06.08.07.51.52; Mon, 08 Jun 2020 07:52:15 -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 S1730169AbgFHOsz (ORCPT + 99 others); Mon, 8 Jun 2020 10:48:55 -0400 Received: from inva020.nxp.com ([92.121.34.13]:46544 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730103AbgFHOs1 (ORCPT ); Mon, 8 Jun 2020 10:48:27 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 2F2021A26C4; Mon, 8 Jun 2020 16:48:25 +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 A44551A0127; Mon, 8 Jun 2020 16:48:20 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C4B94402F3; Mon, 8 Jun 2020 22:48:14 +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 5/9] pinctrl: imx8mq: Support building as module Date: Mon, 8 Jun 2020 22:37:32 +0800 Message-Id: <1591627056-19022-6-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.MX8MQ pinctrl driver as module. Signed-off-by: Anson Huang --- No changes. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-imx8mq.c | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index 4bb6aeb..f194996 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..db5b41a 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) { @@ -345,8 +347,5 @@ static struct platform_driver imx8mq_pinctrl_driver = { .probe = imx8mq_pinctrl_probe, }; -static int __init imx8mq_pinctrl_init(void) -{ - return platform_driver_register(&imx8mq_pinctrl_driver); -} -arch_initcall(imx8mq_pinctrl_init); +module_platform_driver(imx8mq_pinctrl_driver); +MODULE_LICENSE("GPL v2"); -- 2.7.4