浏览代码

[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>
Randy Dunlap 19 年之前
父节点
当前提交
397c718299
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      drivers/char/tpm/tpm_infineon.c

+ 2 - 1
drivers/char/tpm/tpm_infineon.c

@@ -15,6 +15,7 @@
  * License.
  * License.
  */
  */
 
 
+#include <linux/init.h>
 #include <linux/pnp.h>
 #include <linux/pnp.h>
 #include "tpm.h"
 #include "tpm.h"
 
 
@@ -520,7 +521,7 @@ static struct pnp_driver tpm_inf_pnp = {
 	},
 	},
 	.id_table = tpm_pnp_tbl,
 	.id_table = tpm_pnp_tbl,
 	.probe = tpm_inf_pnp_probe,
 	.probe = tpm_inf_pnp_probe,
-	.remove = tpm_inf_pnp_remove,
+	.remove = __devexit_p(tpm_inf_pnp_remove),
 };
 };
 
 
 static int __init init_inf(void)
 static int __init init_inf(void)