diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-10-11 23:04:17 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-10-23 18:08:42 +0200 |
commit | d56f678748391817b241a03825d77fa29f6c1209 (patch) | |
tree | a87a017d9dc51a39df187a0900c4e5e3387f6bc9 | |
parent | 18d6e021d4a7261f065efeb0ca0563533cb64081 (diff) | |
download | backports-d56f678748391817b241a03825d77fa29f6c1209.tar.gz |
main: add module_exit()
This is needed since we have module_init() and otherwise
the kernel cannot unload the module again.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Luciano Coelho <luciano.coelho@intel.com>
Tested-by: Luciano Coelho <luciano.coelho@intel.com>
-rw-r--r-- | backport/compat/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backport/compat/main.c b/backport/compat/main.c index 2540e757..d4f3340d 100644 --- a/backport/compat/main.c +++ b/backport/compat/main.c @@ -72,3 +72,8 @@ static int __init backport_init(void) return 0; } subsys_initcall(backport_init); + +static void __exit backport_exit(void) +{ +} +module_exit(backport_exit); |