Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4436182ybg; Mon, 8 Jun 2020 07:50:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFOlJNY8LznmmaoG4yY0Ui7LPSXFUF6ZQVuUEzazIrW4153/f9dsaGyWHBschS+X7+OgNa X-Received: by 2002:a05:6402:1c8b:: with SMTP id cy11mr21624522edb.122.1591627842021; Mon, 08 Jun 2020 07:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591627842; cv=none; d=google.com; s=arc-20160816; b=GyEgfpfCR9Rp8IXZqNTe9Q5tCqsxC/X6zyoUaQXBalW3xK91rTK+NrAAOpov6AIeuv oT54fB1ee9xBDeArM97e4efrRfTDsuDRWvUOmLlcEauXX0wsELt3vdN38SkraImRBbJn kRQD4p95uycJc/4v1qplzRPH6H2WB+J8qjt4t+q1trGDnalCV/Vd5a/08eeNyeEbhT0q H3l3StT3S/xFsyqkx4TrnEiN/wPJs4jLlO576tN09qq0xlASuS2bSCNC1AoWJTod8rIq NoJ7EiIcJUc714W9JhAGISJswnbU8NXz66TSy5aUSSgfveZGLyuTtYew/M4ym/SjVUB6 0j8g== 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=GPoq2o1YyzC5SHwB8aGc8CruLDhh5S9Tg/vsM6E5PU4=; b=zRYtQ+QeKZ7zfurW6wdmYZL27xAaXhejJOIBcliSxkV3zqgiZcJ8M+lOSO2sWjsvda +6+jSYtMw/ya422Nk/iwwwUkv81Cd+ymSgJi72LP8EQ1f3h4l1aY/Nwt9xgrsrvwP5MT S35twbewj8NwcaOMPQTue/iSoiqgPBXBFslJpEcctCrid1B/7CUd/2krqu8apjGQVyJO /lUem9duGFVrjlYczzGs9AaQ9UeI3OeuJtk3z7nptf44rxqCH1n45cWHtDKeMKmiHZkz 3ryGXcMwwfUkB7x+92q61KVW5stI9WKBTekuf8Ks+N62UoCK7LiQmC0h2twB1Sliul18 fxBw== 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 l60si9204122edl.443.2020.06.08.07.50.18; Mon, 08 Jun 2020 07:50: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 S1730120AbgFHOs3 (ORCPT + 99 others); Mon, 8 Jun 2020 10:48:29 -0400 Received: from inva021.nxp.com ([92.121.34.21]:38412 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730098AbgFHOsX (ORCPT ); Mon, 8 Jun 2020 10:48:23 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 8DA7D200E60; Mon, 8 Jun 2020 16:48: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 0DFF6200E67; Mon, 8 Jun 2020 16:48:17 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 86B81402F0; Mon, 8 Jun 2020 22:48:11 +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 2/9] pinctrl: imx: Support building i.MX pinctrl driver as module Date: Mon, 8 Jun 2020 22:37:29 +0800 Message-Id: <1591627056-19022-3-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 Export necessary functions to support building i.MX common pinctrl driver and its user to be built as module. Signed-off-by: Anson Huang --- Changes since V1: - Separate i.MX and i.MX SCU pinctrl driver to 2 patches; - Support building i.MX common pinctrl driver itself as module. --- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-imx.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index a3a30f1d..58d48df 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only config PINCTRL_IMX - bool + tristate "IMX pinctrl driver" select GENERIC_PINCTRL_GROUPS select GENERIC_PINMUX_FUNCTIONS select GENERIC_PINCONF diff --git a/drivers/pinctrl/freescale/pinctrl-imx.c b/drivers/pinctrl/freescale/pinctrl-imx.c index cb7e0f0..116d808 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx.c +++ b/drivers/pinctrl/freescale/pinctrl-imx.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -878,6 +879,7 @@ int imx_pinctrl_probe(struct platform_device *pdev, return pinctrl_enable(ipctl->pctl); } +EXPORT_SYMBOL_GPL(imx_pinctrl_probe); static int __maybe_unused imx_pinctrl_suspend(struct device *dev) { @@ -897,3 +899,5 @@ const struct dev_pm_ops imx_pinctrl_pm_ops = { SET_LATE_SYSTEM_SLEEP_PM_OPS(imx_pinctrl_suspend, imx_pinctrl_resume) }; +EXPORT_SYMBOL_GPL(imx_pinctrl_pm_ops); +MODULE_LICENSE("GPL v2"); -- 2.7.4