Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1638692ybh; Thu, 16 Jul 2020 18:51:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeoN9Y7Xi7pHy+tycxQ/ycflna/vvGiawLGYFdwFeyi8loYu6ZctvY4UtpBV2n4biXR6M/ X-Received: by 2002:a17:906:b74e:: with SMTP id fx14mr6206732ejb.202.1594950682484; Thu, 16 Jul 2020 18:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594950682; cv=none; d=google.com; s=arc-20160816; b=r+g5S45I913D0MKoeA2rLRCai5NpvVM9EYuLhoRh91FxokxgSw3ePLzkT3RsoxVX6j ohgnyN1KRfTpmZ+iCnjPOm+658VKoq8BZgpXHvIFc+oRdJujAff65z6ojEzdY0V+ddbO gKSO1eK3U3MVDtg/TOY6kzYEEJ7o1uR12W8RmUKK065S1IdDOqI5jCeHcOso0tWAPVy+ Df4TxCFB30Kz2OsR5CKPP7PfNlIvUTpWa2gZE8dddzilHhWYmZ6/MPRUyp3KZ7XCq8Hy 6i3AWAOWXMve8G8jTcJVvRaMEP7L+OOZPg+7d9TgN1m4zeTlvTw+rgMCrlkDMFHZ3zdl X0bQ== 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=lRv/P3JukkDV7JuhdU3iRV5L/OAvgTmfRscfvck8Jv1c+FD7rpabE7depyNVJ+FLiL +bEIpI3tqvvmKwZfzf8E+6oi0x/9vIIGxnu2oQ1Dq4+IQbRkIyFjZ+/F1mDiPMiunIyc 6qjuUNb5toeBXTr5Ja7cYBswMKO7tgdbX10d/wPklV8uKuyEsPCsJUKFaBlFIrZvmXwC /3b4ybfSXWqfjFxGMKIoHdD5HiJ4/gdSBNFT31LkHQvd9SwHMbVsuYJc+egemADKFaHD R9E/iCjj6b5utAl/ORAcy8cf4z73U37sa3LCCtrl2NbGCE3I6IUo5m6gVUrmHEY1MpIT osOQ== 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 g88si4264665edd.117.2020.07.16.18.50.58; Thu, 16 Jul 2020 18:51:22 -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 S1726547AbgGQBtS (ORCPT + 99 others); Thu, 16 Jul 2020 21:49:18 -0400 Received: from lucky1.263xmail.com ([211.157.147.130]:38828 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726166AbgGQBtS (ORCPT ); Thu, 16 Jul 2020 21:49:18 -0400 Received: from localhost (unknown [192.168.167.13]) by lucky1.263xmail.com (Postfix) with ESMTP id E198BCA8CA; Fri, 17 Jul 2020 09:49:13 +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 P17843T139819799787264S1594950550837667_; Fri, 17 Jul 2020 09:49:13 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <0b6cc61686a1891e65d89d2e784f7487> 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 09:48:58 +0800 Message-Id: <20200717014908.13914-4-jay.xu@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200717014908.13914-1-jay.xu@rock-chips.com> References: <20200717014908.13914-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