Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp569744ybg; Tue, 9 Jun 2020 07:35:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1SHqcOcDu+bsnnQo880m1S4aA1Xzyu6EKKDjG7D2yo+IWH21nBRs1w+Ajj0sAli1OAvtO X-Received: by 2002:a17:906:9243:: with SMTP id c3mr25858489ejx.400.1591713303339; Tue, 09 Jun 2020 07:35:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591713303; cv=none; d=google.com; s=arc-20160816; b=JsjYUv4QvyQwvUOznzUhS47q/IZSXf3hENHnrjVuyWI2dlnSdCfQa2FHwUXPpRJKcR 47qtut8t9pIP0qNx8RkY8NsVpc7TGGGRINBlQ3E8Wb+SA+xTrR166IqA+yP0iEuJhxjY MWt1gUoBQxLpA8nrpZ6Yw0tJuAP9d194S7R3TrGsb7uDhIZfsyY0j8Jg25+iwJlFXcPQ klD8lG3Gpo8CCoWJP9ssAUtYWyZ7g8WB4fEJPjTl3F7HbTtdF1AEXCsmzmGDGJ1BUnf0 IO8PMG37oVD90mFEhRSm2XzREW59Bbeh/IQxkCVAYDiEXPbMl9Lr5IqC/SlOOkRoiM7N tyFw== 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=fFqUqCRFNr7IUPjLJrmY7gGrbTl6kYNzINbMZZMUhIc=; b=GV74uPhkR2R09n3ZOTsk+Ptpdd4mTCShRQ754ipiqX7JCmcev1n683QwxjvmASBVaw 6rAucYvrMxiN3Yd1ff07eDUgTwST8NyqxQm7+iIl+sSlzXMIJWJtQqM/zLgTuK5jo7Mf FGdG3EJoNeJt9yQ4Yvrg8W9AS3KqrqmU9H8NLDAJleFWEJRKr7D8r0Mdm2+7wnLrZ11x f3w/XLrq2/vtfBIes4xrq8sF61mpII9a7IZvqZPKjdHo4r740luNqS5YwVJE29KvBdv5 4AV9GHD1Fei2EbOgBNndvGJIf10GNaIDD/vQAj3OOi95t+wKTIpptNdwN3t+1PgYbMcm XIVw== 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 f17si11409619edr.515.2020.06.09.07.34.39; Tue, 09 Jun 2020 07:35:03 -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 S1730592AbgFIOc1 (ORCPT + 99 others); Tue, 9 Jun 2020 10:32:27 -0400 Received: from inva020.nxp.com ([92.121.34.13]:49136 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730520AbgFIOcW (ORCPT ); Tue, 9 Jun 2020 10:32:22 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 571A11A13DA; Tue, 9 Jun 2020 16:32:20 +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 CBA621A13E0; Tue, 9 Jun 2020 16:32:15 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id EE7384031F; Tue, 9 Jun 2020 22:32:09 +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 V3 7/9] pinctrl: imx8qxp: Support building as module Date: Tue, 9 Jun 2020 22:21:23 +0800 Message-Id: <1591712485-20609-8-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591712485-20609-1-git-send-email-Anson.Huang@nxp.com> References: <1591712485-20609-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.MX8QXP pinctrl driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-imx8qxp.c | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index bd68af1..0751145 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -160,7 +160,7 @@ config PINCTRL_IMX8QM Say Y here to enable the imx8qm pinctrl driver config PINCTRL_IMX8QXP - bool "IMX8QXP pinctrl driver" + tristate "IMX8QXP pinctrl driver" depends on IMX_SCU && ARCH_MXC && ARM64 select PINCTRL_IMX help diff --git a/drivers/pinctrl/freescale/pinctrl-imx8qxp.c b/drivers/pinctrl/freescale/pinctrl-imx8qxp.c index 1131dc3..0eaa36b 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx8qxp.c +++ b/drivers/pinctrl/freescale/pinctrl-imx8qxp.c @@ -204,6 +204,7 @@ static const struct of_device_id imx8qxp_pinctrl_of_match[] = { { .compatible = "fsl,imx8qxp-iomuxc", }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, imx8qxp_pinctrl_of_match); static int imx8qxp_pinctrl_probe(struct platform_device *pdev) { @@ -224,9 +225,5 @@ static struct platform_driver imx8qxp_pinctrl_driver = { }, .probe = imx8qxp_pinctrl_probe, }; - -static int __init imx8qxp_pinctrl_init(void) -{ - return platform_driver_register(&imx8qxp_pinctrl_driver); -} -arch_initcall(imx8qxp_pinctrl_init); +module_platform_driver(imx8qxp_pinctrl_driver); +MODULE_LICENSE("GPL v2"); -- 2.7.4