Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1892570ybg; Thu, 4 Jun 2020 23:47:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvVlTJw8dy7K0PyzcqJWLhUXv1CUvr56xgqkEYmkhadUGXN5OA3zOVbWWX02TrYpmr+yjk X-Received: by 2002:a50:fd01:: with SMTP id i1mr8374617eds.32.1591339662766; Thu, 04 Jun 2020 23:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591339662; cv=none; d=google.com; s=arc-20160816; b=N66SkvRDZqZJovX6Z1D+jL285uW49klDH0RIFE1tVfQcgK27r310UEFRhib8I9AXN/ 1kZ9KZFHEwLN3D1KScQq2eiZWA0ZWQIx98DIohe7/+bIMB2k6jl5aVs7ekdbuhyd4xj7 Nd1itv+3KmMzbmWNkcgdjWlOBncoM2axCHtvfXCaXh1v0oLEo1kl2KIPEmVGqUgZgOVu 3HISpwuH7ATAxKZHMlX8kGNGrWs/rwCnPuOYqwIk38vBp0WbVkUr9SIbEm0l+kdj5qxd NU/YsTmSpHgcMDT9yQZgPEpb9HEifOuUzOZSiAqasOFkqM6n4U7/PhUsqE8j02b3+QAj mLnQ== 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=dEsvb39Nzb++B0VmiVqWBCUmiCNLZiGI+OTmy1y7b0I=; b=BqPahaNEISzUgoMKu4B7Zr8EMKhN88EfcOedlpijlYEYVV6UtyGxGTxb58De9Hv8hU Ja1Vl+Utt5LmymsTEYgz+bP2u5RYt+St3s3rmvjb0frPeCFWvTTuVWN0+3xYvFrQyQtt UFkc7GgzAVXCx+Pf7Dj49h0I9vjZaPJtAZiAEx2uCss9L/ttmqxRV4jU3KXWFSMzK782 YqhbiGSMVhW3lZsAAnZOaJr2Ji6BJARlSJup0vk7mAxaDaan5ajfA/H/MmoIk5jYxLzu UwdX21d3zjAtzkfCMG37J+uR2AMqMbSXmFG3mtHjQ+daNGUuIwQEaLxJFcdVOXpIvVIF IrTQ== 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 p4si2944860edd.374.2020.06.04.23.47.20; Thu, 04 Jun 2020 23:47:42 -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 S1726257AbgFEGp1 (ORCPT + 99 others); Fri, 5 Jun 2020 02:45:27 -0400 Received: from inva021.nxp.com ([92.121.34.21]:57278 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726191AbgFEGpU (ORCPT ); Fri, 5 Jun 2020 02:45:20 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 0E5002002B3; Fri, 5 Jun 2020 08:45:18 +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 80B742014A1; Fri, 5 Jun 2020 08:45: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 E7F8B4031F; Fri, 5 Jun 2020 14:45: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 7/8] pinctrl: imx8qm: Support building as module Date: Fri, 5 Jun 2020 14:34:33 +0800 Message-Id: <1591338874-4733-8-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.MX8QM pinctrl driver as module. Signed-off-by: Anson Huang --- 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 0a728bb..d9fb5f2 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -152,7 +152,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_SCU 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