Thread (7 messages) 7 messages, 3 authors, 2015-12-14
STALE3839d

[PATCH 3/3] drivers/cpuidle: make cpuidle-exynos.c explicitly non-modular

From: Paul Gortmaker <hidden>
Date: 2015-12-14 00:00:16
Also in: linux-pm, linux-samsung-soc, lkml
Subsystem: cpu idle time management framework, cpuidle driver - arm exynos, the rest · Maintainers: "Rafael J. Wysocki", Daniel Lezcano, Kukjin Kim, Linus Torvalds

The Kconfig currently controlling compilation of this code is:

cpuidle/Kconfig.arm:config ARM_EXYNOS_CPUIDLE
cpuidle/Kconfig.arm:    bool "Cpu Idle Driver for the Exynos processors"

...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.

Cc: Bartlomiej Zolnierkiewicz <redacted>
Cc: Daniel Lezcano <redacted>
Cc: Kukjin Kim <kgene@kernel.org>
Cc: "Rafael J. Wysocki" <redacted>
Cc: Krzysztof Kozlowski <redacted>
Cc: linux-pm at vger.kernel.org
Cc: linux-samsung-soc at vger.kernel.org
Cc: linux-arm-kernel at lists.infradead.org
Signed-off-by: Paul Gortmaker <redacted>
---
 drivers/cpuidle/cpuidle-exynos.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/cpuidle/cpuidle-exynos.c b/drivers/cpuidle/cpuidle-exynos.c
index b5f0a9cc8185..00cd129b10a4 100644
--- a/drivers/cpuidle/cpuidle-exynos.c
+++ b/drivers/cpuidle/cpuidle-exynos.c
@@ -14,7 +14,7 @@
 #include <linux/cpuidle.h>
 #include <linux/cpu_pm.h>
 #include <linux/export.h>
-#include <linux/module.h>
+#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/of.h>
 #include <linux/platform_data/cpuidle-exynos.h>
@@ -142,5 +142,4 @@ static struct platform_driver exynos_cpuidle_driver = {
 		.name = "exynos_cpuidle",
 	},
 };
-
-module_platform_driver(exynos_cpuidle_driver);
+builtin_platform_driver(exynos_cpuidle_driver);
-- 
2.6.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help