From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752917AbbJLBhc (ORCPT ); Sun, 11 Oct 2015 21:37:32 -0400 Received: from mail.windriver.com ([147.11.1.11]:64291 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752790AbbJLBgq (ORCPT ); Sun, 11 Oct 2015 21:36:46 -0400 From: Paul Gortmaker To: CC: , Paul Gortmaker , Russell King , Stephen Warren , Thierry Reding , Alexandre Courbot , Subject: [PATCH 3/3] drivers/amba: make tegra-ahb.c explicitly non-modular Date: Sun, 11 Oct 2015 21:35:47 -0400 Message-ID: <1444613747-17715-4-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.6.1 In-Reply-To: <1444613747-17715-1-git-send-email-paul.gortmaker@windriver.com> References: <1444613747-17715-1-git-send-email-paul.gortmaker@windriver.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Kconfig currently controlling compilation of this code is: drivers/amba/Kconfig:config TEGRA_AHB drivers/amba/Kconfig: bool "Enable AHB driver for NVIDIA Tegra SoCs" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modularity so that when reading the driver there is no doubt it is builtin-only. Since module_platform_driver() uses the same init level priority as builtin_platform_driver() the init ordering remains unchanged with this commit. We also delete the MODULE_LICENSE tag etc. since all that information is already contained at the top of the file in the comments. Cc: Russell King Cc: Stephen Warren Cc: Thierry Reding Cc: Alexandre Courbot Cc: linux-tegra@vger.kernel.org Signed-off-by: Paul Gortmaker --- drivers/amba/tegra-ahb.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/amba/tegra-ahb.c b/drivers/amba/tegra-ahb.c index b0b688c481e8..5b53ebfa4f9e 100644 --- a/drivers/amba/tegra-ahb.c +++ b/drivers/amba/tegra-ahb.c @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include #include @@ -301,9 +301,4 @@ static struct platform_driver tegra_ahb_driver = { .pm = &tegra_ahb_pm, }, }; -module_platform_driver(tegra_ahb_driver); - -MODULE_AUTHOR("Hiroshi DOYU "); -MODULE_DESCRIPTION("Tegra AHB driver"); -MODULE_LICENSE("GPL v2"); -MODULE_ALIAS("platform:" DRV_NAME); +builtin_platform_driver(tegra_ahb_driver); -- 2.6.1