Skip to content

Commit 8fd3574

Browse files
Jordan CrouseGeorgi Djakov
authored andcommitted
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]>
1 parent fcb57bf commit 8fd3574

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/interconnect/core.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -944,12 +944,7 @@ static int __init icc_init(void)
944944
return 0;
945945
}
946946

947-
static void __exit icc_exit(void)
948-
{
949-
debugfs_remove_recursive(icc_debugfs_dir);
950-
}
951-
module_init(icc_init);
952-
module_exit(icc_exit);
947+
device_initcall(icc_init);
953948

954949
MODULE_AUTHOR("Georgi Djakov <[email protected]>");
955950
MODULE_DESCRIPTION("Interconnect Driver Core");

0 commit comments

Comments
 (0)