Skip to content

Commit 397c718

Browse files
rddunlapLinus Torvalds
authored andcommitted
[PATCH] tpm_infineon section fixup
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>
1 parent 8b006db commit 397c718

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/char/tpm/tpm_infineon.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* License.
1616
*/
1717

18+
#include <linux/init.h>
1819
#include <linux/pnp.h>
1920
#include "tpm.h"
2021

@@ -520,7 +521,7 @@ static struct pnp_driver tpm_inf_pnp = {
520521
},
521522
.id_table = tpm_pnp_tbl,
522523
.probe = tpm_inf_pnp_probe,
523-
.remove = tpm_inf_pnp_remove,
524+
.remove = __devexit_p(tpm_inf_pnp_remove),
524525
};
525526

526527
static int __init init_inf(void)

0 commit comments

Comments
 (0)