diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2019-10-31 12:28:52 -0600 |
---|---|---|
committer | Georgi Djakov <georgi.djakov@linaro.org> | 2020-05-15 10:40:11 +0300 |
commit | 8fd3574b54a54e4a33d5a6684df89d64ca812f0b (patch) | |
tree | ea94525adcd1c8f9fb191f486f04ce8656a96ffe /drivers/interconnect/core.c | |
parent | fcb57bfcb87f3bdb1b29fea1a1cd72940fa559fd (diff) | |
download | lwn-8fd3574b54a54e4a33d5a6684df89d64ca812f0b.tar.gz lwn-8fd3574b54a54e4a33d5a6684df89d64ca812f0b.zip |
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 <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>
Diffstat (limited to 'drivers/interconnect/core.c')
-rw-r--r-- | drivers/interconnect/core.c | 7 |
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 <georgi.djakov@linaro.org>"); MODULE_DESCRIPTION("Interconnect Driver Core"); |