Skip to content

Commit

Permalink
[PATCH] tpm_infineon section fixup
Browse files Browse the repository at this point in the history
Use __devexit_p() for the exit/remove function to protect against
discarding it.

WARNING: drivers/char/tpm/tpm_infineon.o - Section mismatch: reference to .exit.text:tpm_inf_pnp_remove from .data between 'tpm_inf_pnp' (at offset 0x20) and 'tpm_inf'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Kylene Jo Hall <kjhall@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Apr 22, 2006
1 parent 8b006db commit 397c718
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/char/tpm/tpm_infineon.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* License.
*/

#include <linux/init.h>
#include <linux/pnp.h>
#include "tpm.h"

Expand Down Expand Up @@ -520,7 +521,7 @@ static struct pnp_driver tpm_inf_pnp = {
},
.id_table = tpm_pnp_tbl,
.probe = tpm_inf_pnp_probe,
.remove = tpm_inf_pnp_remove,
.remove = __devexit_p(tpm_inf_pnp_remove),
};

static int __init init_inf(void)
Expand Down

0 comments on commit 397c718

Please sign in to comment.