Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1678063ybh; Thu, 16 Jul 2020 20:24:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZJeTJjWLzVN53K+5vS81NmW3ohnTwnXwwc09FkX2FV7X26hs/hZd52uL0S13Btexdf9yg X-Received: by 2002:a05:6402:13d0:: with SMTP id a16mr7258478edx.269.1594956296267; Thu, 16 Jul 2020 20:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594956296; cv=none; d=google.com; s=arc-20160816; b=r9n1AHWNJ1E1a8XyjtOOvVLwyvn38RZDkjShR7bRfRortP07UNnPfgyfJ6fU8P35B0 PTfWPjbUdVAiFmyTHXYhftB9eRwec0nVrCcfSvEtP0npPxggat+8L3tx660QKFSzy53o /76x2ITbC6YMXkyok9aqG5Qyf6s9IOZue46CGlbwkyEEBkrN2k7SIIPTvtQL7EQo39dL gT4XxUuc6LIoUt8sANXW3RnZlsYipJ4EtmtebMIrF8J1zTwhB8MWrfeKWKTGBIeJlCIQ WQoGCIjOBIz+uzCJn/vvTDaSVn0Ubv4RGIzI1X291OHLqad1RN7SnhcQ/ifobS+GVeyp fKtw== 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=RfHQ4H1iQftulQcxaxfTmhr0tsFuo+dM9/cX41y5p9k=; b=ZK992Z03KI7iJYcNqWXqBdjnQtZ3aQsj+6nrxoVIUER0TZ/IWHtiKFbJGCP46LCJ64 9I85Day/4uv3CZDob90g7o0ANDtmCiQgyjPfGgjuOjg++bQzgVnJC5zTeIejACnRLSdp NdbsmDNCmaMhVlPJhjE/2Oiyuiy69qZKgYHo2xd8ETPUhIxLWcvkzehzQ0ntwXxWIlOQ imtGLe5hCpltcYLNU9iTDPlX3tq987BiiepnvUb2AqFVkm1TzDGD0AwgGoblmMBb2frD BEcaxnwGmFgqztDmRXn7oWNO8lBDq4+jW11iyze0kTRCshQlsFgFJNp00m02G3fphGav Qy9A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z65si4466999ede.610.2020.07.16.20.24.33; Thu, 16 Jul 2020 20:24:56 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726782AbgGQDYY (ORCPT + 99 others); Thu, 16 Jul 2020 23:24:24 -0400 Received: from lucky1.263xmail.com ([211.157.147.132]:56944 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726457AbgGQDYX (ORCPT ); Thu, 16 Jul 2020 23:24:23 -0400 Received: from localhost (unknown [192.168.167.16]) by lucky1.263xmail.com (Postfix) with ESMTP id 91512EC55B; Fri, 17 Jul 2020 11:24:21 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P18585T140685189564160S1594956256233933_; Fri, 17 Jul 2020 11:24:21 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: jay.xu@rock-chips.com X-SENDER: xjq@rock-chips.com X-LOGIN-NAME: jay.xu@rock-chips.com X-FST-TO: heiko@sntech.de X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 X-System-Flag: 0 From: Jianqun Xu To: heiko@sntech.de, linus.walleij@linaro.org Cc: linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kever.yang@rock-chips.com, david.wu@rock-chips.com, Jianqun Xu Subject: [PATCH 03/13] pinctrl: rockchip: make driver be tristate module Date: Fri, 17 Jul 2020 11:24:01 +0800 Message-Id: <20200717032411.17654-4-jay.xu@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200717032411.17654-1-jay.xu@rock-chips.com> References: <20200717032411.17654-1-jay.xu@rock-chips.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make pinctrl-rockchip driver to be tristate module, support to build as a module, this is useful for GKI. Signed-off-by: Jianqun Xu --- drivers/pinctrl/Kconfig | 2 +- drivers/pinctrl/pinctrl-rockchip.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 8828613c4e0e..dd4874e2ac67 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig @@ -207,7 +207,7 @@ config PINCTRL_OXNAS select MFD_SYSCON config PINCTRL_ROCKCHIP - bool + tristate "Rockchip gpio and pinctrl driver" select PINMUX select GENERIC_PINCONF select GENERIC_IRQ_CHIP diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c index 77c1e6744f6c..ec509ef8bd8d 100644 --- a/drivers/pinctrl/pinctrl-rockchip.c +++ b/drivers/pinctrl/pinctrl-rockchip.c @@ -16,10 +16,12 @@ */ #include +#include #include #include #include #include +#include #include #include #include @@ -4259,6 +4261,7 @@ static const struct of_device_id rockchip_pinctrl_dt_match[] = { .data = &rk3399_pin_ctrl }, {}, }; +MODULE_DEVICE_TABLE(of, rockchip_pinctrl_dt_match); static struct platform_driver rockchip_pinctrl_driver = { .probe = rockchip_pinctrl_probe, @@ -4274,3 +4277,7 @@ static int __init rockchip_pinctrl_drv_register(void) return platform_driver_register(&rockchip_pinctrl_driver); } postcore_initcall(rockchip_pinctrl_drv_register); + +MODULE_DESCRIPTION("ROCKCHIP Pin Controller Driver"); +MODULE_LICENSE("GPL"); +MODULE_ALIAS("platform:pinctrl-rockchip"); -- 2.17.1