* [PATCH] amba: tegra-ahb: make it explicitly non-modular
@ 2016-07-04 21:36 Paul Gortmaker
0 siblings, 0 replies; only message in thread
From: Paul Gortmaker @ 2016-07-04 21:36 UTC (permalink / raw)
To: linux-kernel
Cc: Paul Gortmaker, Russell King, Stephen Warren, Hiroshi DOYU,
Thierry Reding, Alexandre Courbot, linux-tegra
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
was (or is now) contained at the top of the file in the comments.
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: Hiroshi DOYU <hdoyu@nvidia.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Alexandre Courbot <gnurou@gmail.com>
Cc: linux-tegra@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
drivers/amba/tegra-ahb.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/drivers/amba/tegra-ahb.c b/drivers/amba/tegra-ahb.c
index b0b688c481e8..38cba9c7fb73 100644
--- a/drivers/amba/tegra-ahb.c
+++ b/drivers/amba/tegra-ahb.c
@@ -1,4 +1,6 @@
/*
+ * Tegra AHB driver
+ *
* Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
* Copyright (C) 2011 Google, Inc.
*
@@ -22,7 +24,7 @@
#include <linux/err.h>
#include <linux/kernel.h>
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/of.h>
@@ -301,9 +303,4 @@ static struct platform_driver tegra_ahb_driver = {
.pm = &tegra_ahb_pm,
},
};
-module_platform_driver(tegra_ahb_driver);
-
-MODULE_AUTHOR("Hiroshi DOYU <hdoyu@nvidia.com>");
-MODULE_DESCRIPTION("Tegra AHB driver");
-MODULE_LICENSE("GPL v2");
-MODULE_ALIAS("platform:" DRV_NAME);
+builtin_platform_driver(tegra_ahb_driver);
--
2.8.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-04 21:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-04 21:36 [PATCH] amba: tegra-ahb: make it explicitly non-modular Paul Gortmaker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox