Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp763422ybg; Tue, 9 Jun 2020 12:10:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJFma35AsLeX5URsaTgcek1r/J2Sv3RofOnvOAaQ+Vpxy3p1gWNvxUZDNmDbsHthGKf9uk X-Received: by 2002:a50:b5a6:: with SMTP id a35mr29452411ede.197.1591729843377; Tue, 09 Jun 2020 12:10:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591729843; cv=none; d=google.com; s=arc-20160816; b=yFfmrrQ5FxRQyzdvs1W6fY0zC9POqa15R9MTUiI7/Oxv/E5pMeyWjiEfHpdDv6UKFH 2CbYQYaY+9Iz9AXeRSTUMmFb+apwhlJ5ithNLtnNrISEqxvJs80QWAcl2tu04cVehmay AvH0f1YSn3kZVWztYEM7pF0O7k40buPzsnF/t5vmQ1V323UPZXE7cqoA6XPUa/njO5Zx VOoWSjq9Uv2W2sVjk7ratvPUcSpowRsogy4Su0bLtzo10lypZqp2/D/Kk34/3vH+9U4U RrpQk6JGr92GnfCFE3d8tdlFaENynf3JR/kaq2fmav9YWxtXt8mUqVWq3l/B3U857J6D 7b5A== 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=d6jhB3lQ/cJlszPERUF3rggw3/LuIguV+PWkXE11SYs=; b=zdxLgFSWB0Xh3dU9j6x/uRPF41zpOqaY0JmuvjrST3n174OzUCJ+BVdb8k18rlnLna QsX6RoffTSnvHTC37l/3085lOmyacaHcAkguGZu0XP3dPwjsp+vtSakcAYAGTj2M4q+i 0VMewHvITxdmKh3F/XYiMFhsp0GCt+aThahrEwYsE4alvCbmKN+N+U2NGxFabmemLfFy DG7Xyoz+FxZFTEoQ83mG91at7nC3oDardBRGWdqiokgYIW+e2fWcuOXJPhMzATxR814N GOnbIujb10WwV79e52Lq3CRb0LpThmFNjdDQu/YzBn1O4vusGrsKVaVFKicbe+au1E5d vw7g== 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 b11si11126719edw.203.2020.06.09.12.10.20; Tue, 09 Jun 2020 12:10:43 -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 S1730632AbgFIOdD (ORCPT + 99 others); Tue, 9 Jun 2020 10:33:03 -0400 Received: from inva020.nxp.com ([92.121.34.13]:49112 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730289AbgFIOcR (ORCPT ); Tue, 9 Jun 2020 10:32:17 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A879B1A13DB; Tue, 9 Jun 2020 16:32:14 +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 2866E1A13DE; Tue, 9 Jun 2020 16:32:10 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 927EC402F0; Tue, 9 Jun 2020 22:32:04 +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 2/9] pinctrl: imx: Support building i.MX pinctrl driver as module Date: Tue, 9 Jun 2020 22:21:18 +0800 Message-Id: <1591712485-20609-3-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 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 V2: - add "depends on OF" to fix build error when using x86 randconfig. --- drivers/pinctrl/freescale/Kconfig | 3 ++- drivers/pinctrl/freescale/pinctrl-imx.c | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index f6c00d5..3383fc2 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config PINCTRL_IMX - bool + tristate "IMX pinctrl driver" + depends on OF 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