From: Jordan Crouse Date: Thu, 31 Oct 2019 18:28:52 +0000 (-0600) Subject: interconnect: Remove unused module exit code from core X-Git-Tag: v5.8-rc1~104^2~35^2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8fd3574b54a54e4a33d5a6684df89d64ca812f0b;p=thirdparty%2Flinux.git 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 Reviewed-by: Bjorn Andersson Link: https://lore.kernel.org/r/1572546532-19248-3-git-send-email-jcrouse@codeaurora.org Signed-off-by: Georgi Djakov --- diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c index aba5d38ea9d15..2d2e497805119 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 "); MODULE_DESCRIPTION("Interconnect Driver Core");