Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1892546ybg; Thu, 4 Jun 2020 23:47:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZThqbZESWh62c69joZ2V/huUMkVS3iuTYrMShd4XBbofXpGiRSaPRcfAsqmag/hZWkd1K X-Received: by 2002:a05:6402:1c87:: with SMTP id cy7mr8059105edb.354.1591339657319; Thu, 04 Jun 2020 23:47:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591339657; cv=none; d=google.com; s=arc-20160816; b=A1P5gD6+Urv7tuhkHd+s+elj3Es4OHijQng3FpG1yQL2/bTpbyhZVXL4o+p2TlcHdb wojsO0zePvcudeEHy5fHjGmibi7xKK0lbxncvVaN+7IszpTT8Ty2zlJb0cbFk7ZwfUd8 QNNVyxq0Q2rLpBNAhGQIarGDN3k5jAGuv9VvM6diNM0y3E1fSfqFRHq3NgTVxjQ+qDpG gFOgb2Rh2kcoSHLn9L4DPuCqoDVXbk+H6sV1fFUW4OsKJyC/ZlmfYdc3Y65hE88yFMW+ 6ThlHDSsA8teixC6Kwu6Gw5q5jzCFKZedUI2a+qRfQLDgRd8V93C5TT0Ji5ZYfYXIYia LQLQ== 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=w2rwN3OKtCltP9nzLqtgmSn2rOqElOQ8fF8Bcd5VLB8=; b=oW0WNWt4Fq4FQE5R1Nk4WnEYrL2obAmMYP/JzMFjwFAKColE3iKrs6YtYZzV8c4lBE aNTpmigdylJO/HwkK/bolL+ZBDskkQiYRabB5D9NliLCVlmibyu4cYtIKL7GE7Msf4vp KodHf5QomUEyTqcCatoE4T27+ilkskUmlsqpjXp2txqQkVI8UoqniV5+oXaMiilt/3qZ FPpEDCkqiVF9XQ+P3avA6IW80Hz3jdvyVLKkqIMjATkexcYnrV09XQ36/TWQZHQ0HauJ bVKiy14qnPJM86riVg1hBWlMm3MvduDKbG1WBGDVyTG2T6RV6akAPu9azbKP2CaTsQwS aqGw== 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 d11si3184785eds.416.2020.06.04.23.47.15; Thu, 04 Jun 2020 23:47:37 -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 S1726248AbgFEGpX (ORCPT + 99 others); Fri, 5 Jun 2020 02:45:23 -0400 Received: from inva021.nxp.com ([92.121.34.21]:57240 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726226AbgFEGpT (ORCPT ); Fri, 5 Jun 2020 02:45:19 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 401552014AA; Fri, 5 Jun 2020 08:45:17 +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 B20192002B0; Fri, 5 Jun 2020 08:45:12 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 96CE24030C; Fri, 5 Jun 2020 14:45:06 +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 6/8] pinctrl: imx8qxp: Support building as module Date: Fri, 5 Jun 2020 14:34:32 +0800 Message-Id: <1591338874-4733-7-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591338874-4733-1-git-send-email-Anson.Huang@nxp.com> References: <1591338874-4733-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 --- 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 2bf90b3..0a728bb 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