Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp763349ybg; Tue, 9 Jun 2020 12:10:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlAfF38ipaRa7KMa5cJtMEksHj5dTkBshIVxcZYuJQfviczyy0f+OksgGjiTx4+1KetIAH X-Received: by 2002:a17:906:6bc4:: with SMTP id t4mr28544646ejs.354.1591729836495; Tue, 09 Jun 2020 12:10:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591729836; cv=none; d=google.com; s=arc-20160816; b=iR/OVohgmubKqijh+Gh7qYaNweTTiOY+817hzGKDIzIQbkAfSLxN0Ge9gPLv+1s7jQ 4X7fOnnqr+3VqX1ooVk626aFrnPP/R0T89sMSamT77cB15PgmdZxaxb5PyVKx63QMQq+ AX7akAy889x5AAUaZ+Eu15ZDRNwZoHqlMopl6qTHu9j7oh1Vh0rQTXJ9IkYjUmk65TN+ goUo+meXnu5nxJneHkUgS/074YtmEbRShQDRkI8oIQKgzyrYY1MVUbb5zg3UYhhZBfmb HPlyF4a30HzmpqssUAh8FBuaaCS9CIHXsDoa/zp+Lnj8rdHGg/2o3PZbE7N66MLuw1IU Bekw== 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=FLth3CpDIDJ9xGYECWCyMrrPe/i8GMHjFX68t34yE5Q=; b=dSzmNwQX61Xvm5Ad7OaGN2I1YMh2jbGtTTqLPxP6yx0TmuYBpZZyQt6BhI3O4fTpwv kNkojz5x4sYPuzPMLWPNm5xS8qJuDsqO0OS+vg0jwUy7tEiq5xEnNcstltS/Dn79S6V/ yvksZycDZUasFmmhnyXzxEtI+UrvoqkrapMqMyr2ESuJZLAVPoPO7HHzYDlj4znu/TAM wER/5jJDJ3lvHYNTQSQ6VZjb5WzVe9/bS/ItluQhuOugGlnOQb2+Qy7WaBbfDhyHlQ4O x/ehBosAEa8/zOPyexTHB4SbnyrvLm6+MGyvFFMmldWNZsALttJ7n9oKA7bmmbBn8T0m ezvw== 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 dt2si14595776ejc.596.2020.06.09.12.10.13; Tue, 09 Jun 2020 12:10:36 -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 S1730601AbgFIOc2 (ORCPT + 99 others); Tue, 9 Jun 2020 10:32:28 -0400 Received: from inva021.nxp.com ([92.121.34.21]:38006 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730543AbgFIOcX (ORCPT ); Tue, 9 Jun 2020 10:32:23 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 68A5320123F; Tue, 9 Jun 2020 16:32:21 +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 DD9A220123E; Tue, 9 Jun 2020 16:32:16 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 0C93840324; Tue, 9 Jun 2020 22:32:10 +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 8/9] pinctrl: imx8qm: Support building as module Date: Tue, 9 Jun 2020 22:21:24 +0800 Message-Id: <1591712485-20609-9-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.MX8QM pinctrl driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-imx8qm.c | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index 0751145..4a9c19b 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -153,7 +153,7 @@ config PINCTRL_IMX8MQ Say Y here to enable the imx8mq pinctrl driver config PINCTRL_IMX8QM - bool "IMX8QM pinctrl driver" + tristate "IMX8QM pinctrl driver" depends on IMX_SCU && ARCH_MXC && ARM64 select PINCTRL_IMX help diff --git a/drivers/pinctrl/freescale/pinctrl-imx8qm.c b/drivers/pinctrl/freescale/pinctrl-imx8qm.c index 0b6029b..905702a 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx8qm.c +++ b/drivers/pinctrl/freescale/pinctrl-imx8qm.c @@ -298,6 +298,7 @@ static const struct of_device_id imx8qm_pinctrl_of_match[] = { { .compatible = "fsl,imx8qm-iomuxc", }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, imx8qm_pinctrl_of_match); static int imx8qm_pinctrl_probe(struct platform_device *pdev) { @@ -318,9 +319,5 @@ static struct platform_driver imx8qm_pinctrl_driver = { }, .probe = imx8qm_pinctrl_probe, }; - -static int __init imx8qm_pinctrl_init(void) -{ - return platform_driver_register(&imx8qm_pinctrl_driver); -} -arch_initcall(imx8qm_pinctrl_init); +module_platform_driver(imx8qm_pinctrl_driver); +MODULE_LICENSE("GPL v2"); -- 2.7.4