Skip to content

Commit 8459923

Browse files
Paul Gortmakerrafaeljw
authored andcommitted
drivers/cpuidle: make cpuidle-exynos.c explicitly non-modular
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. Acked-by: Daniel Lezcano <[email protected]> Signed-off-by: Paul Gortmaker <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent fdc7d51 commit 8459923

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/cpuidle/cpuidle-exynos.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <linux/cpuidle.h>
1515
#include <linux/cpu_pm.h>
1616
#include <linux/export.h>
17-
#include <linux/module.h>
17+
#include <linux/init.h>
1818
#include <linux/platform_device.h>
1919
#include <linux/of.h>
2020
#include <linux/platform_data/cpuidle-exynos.h>
@@ -142,5 +142,4 @@ static struct platform_driver exynos_cpuidle_driver = {
142142
.name = "exynos_cpuidle",
143143
},
144144
};
145-
146-
module_platform_driver(exynos_cpuidle_driver);
145+
builtin_platform_driver(exynos_cpuidle_driver);

0 commit comments

Comments
 (0)