Browse files

Print message when unloading, add __exit macro

__exit makes the function being executed for dynamic modules only since an exit
function is not meaningful if statically compiled. It's added for best coding
  • Loading branch information...
1 parent 8d618b2 commit 9ceb2527c1b181fa99a6481ef73d05de1c35435e @Lekensteyn Lekensteyn committed Oct 18, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 acpi_call.c
@@ -278,9 +278,10 @@ static int __init init_acpi_call(void)
return 0;
-static void unload_acpi_call(void)
+static void __exit unload_acpi_call(void)
remove_proc_entry("call", acpi_root_dir);
+ printk(KERN_INFO "acpi_call: Module unloaded successfully\n");

0 comments on commit 9ceb252

Please sign in to comment.