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.
Unified · Split
| @@ -944,12 +944,7 @@ static int __init icc_init(void) · 943 unmodified lines | ||
| 944 | 944 | return 0; |
| 945 | 945 | } |
| 946 | 946 | |
| 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); | |
| 953 | 948 | |
| 954 | 949 | MODULE_AUTHOR("Georgi Djakov <georgi.djakov@linaro.org>"); |
| 955 | 950 | MODULE_DESCRIPTION("Interconnect Driver Core"); |