Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4549582ybg; Mon, 8 Jun 2020 10:34:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwevU0tlVrFcT6knWwSfTchQlS9p4aHvYNI98ANHvJwv6HsyDN/eJQLfPxtP+2pVX4ibap5 X-Received: by 2002:a17:906:e2d5:: with SMTP id gr21mr21039154ejb.219.1591637683497; Mon, 08 Jun 2020 10:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591637683; cv=none; d=google.com; s=arc-20160816; b=Znih8GBo7KsKcafj91rVqEvKYtSmeV+L0tb3cstRwLPA9SGJwpr7GMdORKv8GOx1Kp 7+u5Jzh4cqJzGVdYS1AiVkOeRp7Sb97Plq5Fz37jneT2i60mZCsiv7byFosP24mCY1UO omTgFXqmQZvd69MkIvBPh2dkJ9o/J/imepGSaRp3uRZTXqb2VrZ0JB5s7xRM7IRgnVTM 3CKQfTTw1XRKu9nj6a6RpA6FYfACdCYM2IDp1Ta+SYD3usNiXbboSd93eCQf/zngCaqN 30BsnkYMjlqueg/mmuYGTS8Q2tLV0tqecPrUC83Ug9TTOUfniK+D7KtKNOq4wzD7dA/Q U5kQ== 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=R3M95lLbl39jW1AAyMgQuN2XASs+s5C2l07DkHhn5KE=; b=N5anairfmdvzQ3UpzoSvGSbDx3gk+ev80WdHErX+HsL5QunasmZAsn3Kel188ku6PA GuIdTAkPVD1cjLQgVc3IUyxeeh30IElpkvkAm3kv0eKfZ1aLEwTg46S9fwFnsl+yKmS/ V1cWM9rzi4JRZo8OV2MVxlGEhQMD7eZo0F8R4Am8NXMC0X491Iiw0A74KMoIIPE+y7aZ qz1awSOEn4i0O6KFuoKIbMEtAw+p+jh7TIU/0jEvO06JhrnzBn9a+8qE34YftS1zEWQc wiCrGz0HW3NOOR9OBPBJCSV2ethP+ObT07kKH9J1NzeJ8i/AJCsRnw7LlgZxHB1EMXDb qBMg== 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 qx4si8921995ejb.176.2020.06.08.10.34.20; Mon, 08 Jun 2020 10:34:43 -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 S1730153AbgFHOsp (ORCPT + 99 others); Mon, 8 Jun 2020 10:48:45 -0400 Received: from inva020.nxp.com ([92.121.34.13]:46608 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729958AbgFHOs3 (ORCPT ); Mon, 8 Jun 2020 10:48:29 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6D6951A105F; Mon, 8 Jun 2020 16:48:27 +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 CD34C1A107E; Mon, 8 Jun 2020 16:48:22 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id EE22E4031F; Mon, 8 Jun 2020 22:48:16 +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 7/9] pinctrl: imx8qxp: Support building as module Date: Mon, 8 Jun 2020 22:37:34 +0800 Message-Id: <1591627056-19022-8-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.MX8QXP pinctrl driver as module. Signed-off-by: Anson Huang --- No changes. --- 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 8f89964..5c9714a 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -159,7 +159,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_SCU 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