Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: comedi: kcomedilib: Add module_init/exit function

Add init/exit function to follow LKM semantics.
Apparently this module can still load/unload without
the init/exit function.

Tested loading/unloading with and without this patch.

Signed-off-by: Cheah Kok Cheong <thrust73@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Cheah Kok Cheong and committed by
Greg Kroah-Hartman
c7ea8b51 b13db6bf

+12
+12
drivers/staging/comedi/kcomedilib/kcomedilib_main.c
··· 250 250 return n; 251 251 } 252 252 EXPORT_SYMBOL_GPL(comedi_get_n_channels); 253 + 254 + static int __init kcomedilib_module_init(void) 255 + { 256 + return 0; 257 + } 258 + 259 + static void __exit kcomedilib_module_exit(void) 260 + { 261 + } 262 + 263 + module_init(kcomedilib_module_init); 264 + module_exit(kcomedilib_module_exit);