Skip to content

Commit

Permalink
drivers/char/ipmi/ipmi_si_intf.c: fix cleanup_one_si section mismatch
Browse files Browse the repository at this point in the history
commit d247852 ("char/ipmi: fix OOPS caused by
pnp_unregister_driver on unregistered driver") introduced a section
mismatch by calling __exit cleanup_ipmi_si from __devinit init_ipmi_si.

Remove __exit annotation from cleanup_ipmi_si.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Sergey Senozhatsky authored and Linus Torvalds committed Mar 24, 2011
1 parent 5883f57 commit 0dcf334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/ipmi/ipmi_si_intf.c
Original file line number Diff line number Diff line change
Expand Up @@ -3521,7 +3521,7 @@ static void cleanup_one_si(struct smi_info *to_clean)
kfree(to_clean);
}

static void __exit cleanup_ipmi_si(void)
static void cleanup_ipmi_si(void)
{
struct smi_info *e, *tmp_e;

Expand Down

0 comments on commit 0dcf334

Please sign in to comment.