Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1892625ybg; Thu, 4 Jun 2020 23:47:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz71HtYy+oC6higvNrCi9rGckroajxh4Vun7gYiDuIbqop/Q+RHtritmP/kPcLLphZZvJK0 X-Received: by 2002:a17:906:7c5a:: with SMTP id g26mr7410037ejp.200.1591339668942; Thu, 04 Jun 2020 23:47:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591339668; cv=none; d=google.com; s=arc-20160816; b=RxwSwUKVU4VIJw2w6p4QBS+NpoMuoRD2ijXRADKTNdpmaqe6qJf2E8MWdMSs2i4TjB yzwvJGbqkfTR5XWSsNLdjFpsCEFZQrYExHIDm/SdKfWBjFR2je6ZPRFw6tWPHxWaCCnb ztvfianCwqi+dKVHSb255SZI13QZLBLi/stPlGjZutkU6ri5Vr2XihHG9zQYxJg4RkA1 5H9eThJsm5MBasBx/C9FhlLomzqfNaMfhRgUR9fjnxY9wwvMpkWltzt1Xd7Kc/xS0Fxo +6TSaB3lAi4xsd/pCpXisu9n/ZZfIlQVYUuJhPJk+EnJ2ag+VuOh6pQSY8EluQKTlnIg MtfQ== 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=ByGV7t9ooncExxxw/UeVWEdEy8tj+LWKIezRAYaf9mk=; b=M32ShRb6qVYIMZWDy4Yuc4d9vMq1T7AS/mZcrvgLBbv47FWsbyrCO0BzodS2EYRa+8 A6reXKBdp53d7C0zl3g+ky9XDxULxabFuUu/BBa4I+zdM3ZmRqHfG63sNv2vqSo+4Msu UEjaXmk28fQMdSXo03z9AOxBn7RsH16gxj6x1z3KKdGt+8VLn/0WlkbgTxauh+XcVWwL nRQY3r7aOfW69vz9pbGDBB5kqYKH1HKeqQ8l8e8T0v0Scb7Wi7QVPxJlw0YnGT3gVePR fmv5rulOi2hOGbB/ySCwk+Eq0ykurxAEaM+BC9oGo5/1eE0TuDn6uIv4BPUd3HlNLiev NYPg== 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 s9si3049640edi.380.2020.06.04.23.47.26; Thu, 04 Jun 2020 23:47:48 -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 S1726266AbgFEGpa (ORCPT + 99 others); Fri, 5 Jun 2020 02:45:30 -0400 Received: from inva021.nxp.com ([92.121.34.21]:57338 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726234AbgFEGpV (ORCPT ); Fri, 5 Jun 2020 02:45:21 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 9869D2014A4; Fri, 5 Jun 2020 08:45:19 +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 15A402002BD; Fri, 5 Jun 2020 08:45: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 1AC29402E4; Fri, 5 Jun 2020 14:45: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 8/8] pinctrl: imx8dxl: Support building as module Date: Fri, 5 Jun 2020 14:34:34 +0800 Message-Id: <1591338874-4733-9-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.MX8DXL pinctrl driver as module. Signed-off-by: Anson Huang --- 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 d9fb5f2..08fcf5c 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -166,7 +166,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_SCU 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