interconnect: Remove unused module exit code from core
authorJordan Crouse <jcrouse@codeaurora.org>
Thu, 31 Oct 2019 18:28:52 +0000 (12:28 -0600)
committerGeorgi Djakov <georgi.djakov@linaro.org>
Fri, 15 May 2020 07:40:11 +0000 (10:40 +0300)
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 <jcrouse@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1572546532-19248-3-git-send-email-jcrouse@codeaurora.org
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/interconnect/core.c

index aba5d38..2d2e497 100644 (file)
@@ -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 <georgi.djakov@linaro.org>");
 MODULE_DESCRIPTION("Interconnect Driver Core");