Skip to content

Commit

Permalink
trivial: add __init macro/ fix of __exit macro location in ipmi_power…
Browse files Browse the repository at this point in the history
…off.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: Peter Huewe <peterhuewe@gmx.de>
Acked-by: Corey Minyard <minyard@acm.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Peter Huewe authored and Jiri Kosina committed Sep 21, 2009
1 parent a419aef commit 0e6b9e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/char/ipmi/ipmi_poweroff.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ static struct ctl_table_header *ipmi_table_header;
/*
* Startup and shutdown functions.
*/
static int ipmi_poweroff_init(void)
static int __init ipmi_poweroff_init(void)
{
int rv;

Expand Down Expand Up @@ -725,7 +725,7 @@ static int ipmi_poweroff_init(void)
}

#ifdef MODULE
static __exit void ipmi_poweroff_cleanup(void)
static void __exit ipmi_poweroff_cleanup(void)
{
int rv;

Expand Down

0 comments on commit 0e6b9e8

Please sign in to comment.