Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp569591ybg; Tue, 9 Jun 2020 07:34:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxknD2cP3BuFDzzKZy/GnhIXPzYmZmvn225iPZ5xXdepnwk4oOZsbN3XCb1wBBVrNBW4Ji/ X-Received: by 2002:a05:6402:b8a:: with SMTP id cf10mr28043499edb.138.1591713292468; Tue, 09 Jun 2020 07:34:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591713292; cv=none; d=google.com; s=arc-20160816; b=gq0xowhD26VJH041LC9IrxtavvCz0ej1NtbDVkmsGxcltB0qObUd4FU0j+ztxkkEa8 3X/dP4L1P+gIGHayiIuIeKmvh3TptuqxinJSCXy8trJtkg+XmojKHqfSlTIdk618hlxG EPIucYCqQaZry9sp2fMJvTlFjcJ4Xs+sw3RVEtMpGlzitbeb3MENKZp/3dQGz2mYOEXV BvURwv70kF9kVNfivQtZ+n0fzIWbkc7ZBCE4S8Cm7sTixFTSJPsBP5laA/MiTI+SCTei dGJRhy6v2IpoVGdV2dwtPKYutXFpyVoPz3ZAnrkFFrLavSjKs4LIHGhoe8ol4KpX+Icx PFUQ== 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=C3wRBlRVHZkqUHtbzmsGR0Y1wp8+8FMjx9d/klzi+dE=; b=GQvNkCL1tTaNsRyp0dzbp3WhxGo86nk06sar0Enxl1nQmVsrsh2XRFwbRZ0pA3g7+y zJdALlXZqYI0fLSMQHHpUlSbJtYs9nLziPQfUpjwnqx9e9yDbxnLBSgSxdsTprQQ2zD7 YL3CzlM5tIF6lpSauM5GiXKLXdBnCivU/4Fn4Fgau59ol5yUWPsyv8u+Ck0fOLvFLegW zJsmAnXTgSpW/3Sw4H6WGKU6Vkj3g09Km/W8N/XniRmQlVFCUrdUxBxcHkVj8xvH7d+v ZrfnMe2odF+oR98qsKVgEF32LnKjy0kWEPx5G+W+3JYylhwao+92Y9lNYAMW+gCNcRLX CCnw== 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 x19si10481755edr.165.2020.06.09.07.34.29; Tue, 09 Jun 2020 07:34:52 -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 S1730609AbgFIOca (ORCPT + 99 others); Tue, 9 Jun 2020 10:32:30 -0400 Received: from inva020.nxp.com ([92.121.34.13]:49326 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730544AbgFIOcY (ORCPT ); Tue, 9 Jun 2020 10:32:24 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 233021A13E5; Tue, 9 Jun 2020 16:32:22 +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 97E891A13CA; Tue, 9 Jun 2020 16:32:17 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 1EA90402FF; Tue, 9 Jun 2020 22:32:12 +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 9/9] pinctrl: imx8dxl: Support building as module Date: Tue, 9 Jun 2020 22:21:25 +0800 Message-Id: <1591712485-20609-10-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.MX8DXL pinctrl driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-imx8dxl.c | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index 4a9c19b..286bbbd 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -167,7 +167,7 @@ config PINCTRL_IMX8QXP Say Y here to enable the imx8qxp pinctrl driver config PINCTRL_IMX8DXL - bool "IMX8DXL pinctrl driver" + tristate "IMX8DXL pinctrl driver" depends on IMX_SCU && ARCH_MXC && ARM64 select PINCTRL_IMX help diff --git a/drivers/pinctrl/freescale/pinctrl-imx8dxl.c b/drivers/pinctrl/freescale/pinctrl-imx8dxl.c index 7f32e57..c11fcfb 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx8dxl.c +++ b/drivers/pinctrl/freescale/pinctrl-imx8dxl.c @@ -165,6 +165,7 @@ static const struct of_device_id imx8dxl_pinctrl_of_match[] = { { .compatible = "fsl,imx8dxl-iomuxc", }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, imx8dxl_pinctrl_of_match); static int imx8dxl_pinctrl_probe(struct platform_device *pdev) { @@ -185,9 +186,5 @@ static struct platform_driver imx8dxl_pinctrl_driver = { }, .probe = imx8dxl_pinctrl_probe, }; - -static int __init imx8dxl_pinctrl_init(void) -{ - return platform_driver_register(&imx8dxl_pinctrl_driver); -} -arch_initcall(imx8dxl_pinctrl_init); +module_platform_driver(imx8dxl_pinctrl_driver); +MODULE_LICENSE("GPL v2"); -- 2.7.4