Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4583251ybg; Mon, 8 Jun 2020 11:28:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRAwffaDEkRNbhHWEh9rfefhHLbSECkksrF9lMYWWlD1wdmfi6LAoJaELsaMQDiUwNnNQ7 X-Received: by 2002:a17:906:b88d:: with SMTP id hb13mr22513117ejb.96.1591640908778; Mon, 08 Jun 2020 11:28:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591640908; cv=none; d=google.com; s=arc-20160816; b=t5EX0Q1jWqVYgJQU22O/AgIC87BdQl7Z7ReLAT5AdgptCvmNiFiuVDN5yHhMfRkxAK bsevyuiTyK0PLK+uNZb6V+aRJ3+J9i2esAMJZs1nt84mRl7tfwzsc7w3szektBgCys2W 6eybtvVQK0qHNWdE1JaKlviS+/WW6O88CCXedfVez2TQugzu9VX9C0ol41087z+mmsJt G2e5jDo6Ro717YddvBNFYa1Sbng3aC9Mk5KIOh6lBF3FAZy52FoUz1G3yIrrkUc7eDhh yce9GHk/L82i9x12MAsjFMWAjk1QOufFJzmRgbEhbJqV4Q5SeNE1ZCEP2yrbqf8neuRU O+iw== 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=BmtY++6qkKT69Rzhamn4yffdmeg63bZSN2ThmSQ9sTM=; b=K6XXCAmYqIz12DR4nQPixaBt3oRw9px6IXSImfLEDXYTaBPmpBsYMoojh5oOpmJwZq knXEuB2clhrCYDef0efe7LVoBpiugZ4fkrn5BKKMIinEhOXprSkoYhqZGOn/Zn7eVsOd dICvENinDXXq/iTztwXxLqQhpDlIVW/eVQ4PQ6bOtOaIWVezXGFCz6SJFgNSzenhzw9q +EahWhLT162YA/uX17sJTnks7YjQgZ1Aes+BtIQ9grRmOtLoGQs9MNGbHbPraQorWde8 207LTmenBz1Ll5Sq5byj/gtxx0ewlIUB6PycaGszVzQQ3li2uLi81pc4no5GtRSF5SpN s/2A== 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 dn16si11149215ejc.427.2020.06.08.11.28.05; Mon, 08 Jun 2020 11:28:28 -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 S1730144AbgFHOsg (ORCPT + 99 others); Mon, 8 Jun 2020 10:48:36 -0400 Received: from inva020.nxp.com ([92.121.34.13]:46582 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730121AbgFHOsb (ORCPT ); Mon, 8 Jun 2020 10:48:31 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 399411A1097; Mon, 8 Jun 2020 16:48:29 +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 9F5DA1A10A5; Mon, 8 Jun 2020 16:48:24 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 2393140307; Mon, 8 Jun 2020 22:48:19 +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 9/9] pinctrl: imx8dxl: Support building as module Date: Mon, 8 Jun 2020 22:37:36 +0800 Message-Id: <1591627056-19022-10-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.MX8DXL pinctrl driver as module. Signed-off-by: Anson Huang --- No changes. --- 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 8ab8aa8..18a0f4d 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