aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Crouse <[email protected]>2019-10-31 12:28:52 -0600
committerGeorgi Djakov <[email protected]>2020-05-15 10:40:11 +0300
commit8fd3574b54a54e4a33d5a6684df89d64ca812f0b (patch)
treeea94525adcd1c8f9fb191f486f04ce8656a96ffe
parentfcb57bfcb87f3bdb1b29fea1a1cd72940fa559fd (diff)
interconnect: Remove unused module exit code from core
The interconnect core is currently always built in: menuconfig INTERCONNECT bool "On-Chip Interconnect management support" So remove the module_exit function and symbolically rename module_init to device_initcall to drive home the point. Signed-off-by: Jordan Crouse <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Georgi Djakov <[email protected]>
-rw-r--r--drivers/interconnect/core.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c
index aba5d38ea9d1..2d2e49780511 100644
--- a/drivers/interconnect/core.c
+++ b/drivers/interconnect/core.c
@@ -944,12 +944,7 @@ static int __init icc_init(void)
return 0;
}
-static void __exit icc_exit(void)
-{
- debugfs_remove_recursive(icc_debugfs_dir);
-}
-module_init(icc_init);
-module_exit(icc_exit);
+device_initcall(icc_init);
MODULE_AUTHOR("Georgi Djakov <[email protected]>");
MODULE_DESCRIPTION("Interconnect Driver Core");