Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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
practises
  • Loading branch information...
commit 9ceb2527c1b181fa99a6481ef73d05de1c35435e 1 parent 8d618b2
@Lekensteyn Lekensteyn authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  acpi_call.c
View
3  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");
}
module_init(init_acpi_call);

0 comments on commit 9ceb252

Please sign in to comment.
Something went wrong with that request. Please try again.