diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2019-01-13 13:36:40 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2019-02-01 03:21:13 -0500 |
commit | 1345da73f6d100568e1fa55376759688c74fcae5 (patch) | |
tree | 04be1c13c5ae93a8d578b8c6971cadd52806c3fb | |
parent | cf090914da11e067a6f0438651912929c8b038f2 (diff) |
mfd: syscon: Make it explicitly non-modular
The Kconfig currently controlling compilation of this code is:
drivers/mfd/Kconfig:config MFD_SYSCON
drivers/mfd/Kconfig: bool "System Controller Register R/W Based on Regmap"
...meaning that it currently is not being built as a module by anyone.
Lets remove the modular code that is essentially orphaned, so that
when reading the driver there is no doubt it is builtin-only.
Since module_init was not in use by this code, 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.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/syscon.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index b6d05cd934e6..0ecdffb3d967 100644 --- a/drivers/mfd/syscon.c +++ b/drivers/mfd/syscon.c | |||
@@ -15,7 +15,7 @@ | |||
15 | #include <linux/err.h> | 15 | #include <linux/err.h> |
16 | #include <linux/hwspinlock.h> | 16 | #include <linux/hwspinlock.h> |
17 | #include <linux/io.h> | 17 | #include <linux/io.h> |
18 | #include <linux/module.h> | 18 | #include <linux/init.h> |
19 | #include <linux/list.h> | 19 | #include <linux/list.h> |
20 | #include <linux/of.h> | 20 | #include <linux/of.h> |
21 | #include <linux/of_address.h> | 21 | #include <linux/of_address.h> |
@@ -272,13 +272,3 @@ static int __init syscon_init(void) | |||
272 | return platform_driver_register(&syscon_driver); | 272 | return platform_driver_register(&syscon_driver); |
273 | } | 273 | } |
274 | postcore_initcall(syscon_init); | 274 | postcore_initcall(syscon_init); |
275 | |||
276 | static void __exit syscon_exit(void) | ||
277 | { | ||
278 | platform_driver_unregister(&syscon_driver); | ||
279 | } | ||
280 | module_exit(syscon_exit); | ||
281 | |||
282 | MODULE_AUTHOR("Dong Aisheng <dong.aisheng@linaro.org>"); | ||
283 | MODULE_DESCRIPTION("System Control driver"); | ||
284 | MODULE_LICENSE("GPL v2"); | ||