提交 0e6b9e8c 编写于 作者: P Peter Huewe 提交者: Jiri Kosina

trivial: add __init macro/ fix of __exit macro location in ipmi_poweroff.c

Trivial patch which adds the __init to the module_init function of
drivers/char/ipmi/ipmy_poweroff.c and corrects the location of __exit for the
cleanup function.
Signed-off-by: NPeter Huewe <peterhuewe@gmx.de>
Acked-by: NCorey Minyard <minyard@acm.org>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 a419aef8
...@@ -691,7 +691,7 @@ static struct ctl_table_header *ipmi_table_header; ...@@ -691,7 +691,7 @@ static struct ctl_table_header *ipmi_table_header;
/* /*
* Startup and shutdown functions. * Startup and shutdown functions.
*/ */
static int ipmi_poweroff_init(void) static int __init ipmi_poweroff_init(void)
{ {
int rv; int rv;
...@@ -725,7 +725,7 @@ static int ipmi_poweroff_init(void) ...@@ -725,7 +725,7 @@ static int ipmi_poweroff_init(void)
} }
#ifdef MODULE #ifdef MODULE
static __exit void ipmi_poweroff_cleanup(void) static void __exit ipmi_poweroff_cleanup(void)
{ {
int rv; int rv;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册