Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp569418ybg; Tue, 9 Jun 2020 07:34:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbfeDcMKlLm3etDZHqlLmV7++h9ednKd7bJuzlIy9QXNY+ojqkHTaTbZeSMTz4DH4eFFrZ X-Received: by 2002:a17:906:b7c8:: with SMTP id fy8mr25348072ejb.85.1591713280277; Tue, 09 Jun 2020 07:34:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591713280; cv=none; d=google.com; s=arc-20160816; b=Xq9AXwyMDtANNhlQgnYAUdwvLwbc4ha55SvKpL06QKzdivayxN/kWGBC5FqUdk9nsp K41JdnOVDRDYiLmy0bS3i8IeqIrxz65II7kOK1MRQLO3hQJIeq6P9pHmc521pzJ+PZmu Z+lq5kmj82pPu9/kMNmg1kcifPUp+faKcKMK6bQeYgIJQwIqkarPJhvcM6Ia0BkrezGK RLb2YXzJrP8UwU1S32iYLYDjRLoFeAZytTBUIOhJ7FnYhPlYnzUTqd4PPfrlcUgjNTNl L8liatbCfdsJ7Ix7mK1lHJx4Nm5zGxfj0J1Oq/BZjgBc4IgGDoHvKLcby8ZxtVqj+x0m PpOw== 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=xYHYtuPuZADNdBNN1wenqMdg/bVSVK4e6+mYizzXvSI=; b=XGWHhYiC4DUAiWG1bHq1E01YVzWyhz1eFNECR02x4jyV502jOpuG8/k9Ks8P1PrxlM T8hoOArVwi0ve4T/AdYa+RrHTb3pHUyjkewnJ+pctPn8KlTXxWGAoqKwrOmEOGctTHlr J/xmMSdyGka2PoWl4yEdDRTbadOWI0VTBptUEhPhLzhrWLxQan0IRbIfti2J88GvvTzl QMPSYOiVWt4syaMhQdY9GtrrQsR8QbsyzNMOWC4aYgXuDtj5LICUigSft3T0nIoKnLcQ m2ioeOaPabbEImpCP0pbWG8NSIjWQSS1fTVFTzoYFCzftnAIE2/aunWW9w/vCdvyaJEk puAA== 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 f7si10731591ejr.406.2020.06.09.07.34.17; Tue, 09 Jun 2020 07:34:40 -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 S1730566AbgFIOc0 (ORCPT + 99 others); Tue, 9 Jun 2020 10:32:26 -0400 Received: from inva020.nxp.com ([92.121.34.13]:49206 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730498AbgFIOcU (ORCPT ); Tue, 9 Jun 2020 10:32:20 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3375B1A13DD; Tue, 9 Jun 2020 16:32:18 +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 A79B01A13CB; Tue, 9 Jun 2020 16:32:13 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C9DC74030C; Tue, 9 Jun 2020 22:32:07 +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 5/9] pinctrl: imx8mq: Support building as module Date: Tue, 9 Jun 2020 22:21:21 +0800 Message-Id: <1591712485-20609-6-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.MX8MQ pinctrl driver as module. Signed-off-by: Anson Huang --- No change. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-imx8mq.c | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index 18ef57e..a6c109e 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -146,7 +146,7 @@ config PINCTRL_IMX8MP Say Y here to enable the imx8mp pinctrl driver config PINCTRL_IMX8MQ - bool "IMX8MQ pinctrl driver" + tristate "IMX8MQ pinctrl driver" depends on ARCH_MXC select PINCTRL_IMX help diff --git a/drivers/pinctrl/freescale/pinctrl-imx8mq.c b/drivers/pinctrl/freescale/pinctrl-imx8mq.c index 50aa1c0..db5b41a 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx8mq.c +++ b/drivers/pinctrl/freescale/pinctrl-imx8mq.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -329,6 +330,7 @@ static const struct of_device_id imx8mq_pinctrl_of_match[] = { { .compatible = "fsl,imx8mq-iomuxc", .data = &imx8mq_pinctrl_info, }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, imx8mq_pinctrl_of_match); static int imx8mq_pinctrl_probe(struct platform_device *pdev) { @@ -345,8 +347,5 @@ static struct platform_driver imx8mq_pinctrl_driver = { .probe = imx8mq_pinctrl_probe, }; -static int __init imx8mq_pinctrl_init(void) -{ - return platform_driver_register(&imx8mq_pinctrl_driver); -} -arch_initcall(imx8mq_pinctrl_init); +module_platform_driver(imx8mq_pinctrl_driver); +MODULE_LICENSE("GPL v2"); -- 2.7.4