aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2008-02-06 04:38:06 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-06 13:41:10 -0500
commite1d42c983ff7ba4b55d8635899186ae2ef2578ad (patch)
treead18eb2d93ab54227a92a98f4985bc77d898ddb2 /drivers
parentec03d7073971e20a866448d62c992a168201ac82 (diff)
tpm: infineon section mismatch
Fix section mismatch by making the driver template variable name match one of the whitelisted variable names in modpost. WARNING: vmlinux.o(.data+0x7a9e8): Section mismatch: reference to .init.text:tpm_inf_pnp_probe (between 'tpm_inf_pnp' and 'cn_idx') Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: Marcel Selhorst <tpm@selhorst.net> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/tpm/tpm_infineon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/tpm/tpm_infineon.c b/drivers/char/tpm/tpm_infineon.c
index 967002a5a1e5..726ee8a0277f 100644
--- a/drivers/char/tpm/tpm_infineon.c
+++ b/drivers/char/tpm/tpm_infineon.c
@@ -611,7 +611,7 @@ static __devexit void tpm_inf_pnp_remove(struct pnp_dev *dev)
611 } 611 }
612} 612}
613 613
614static struct pnp_driver tpm_inf_pnp = { 614static struct pnp_driver tpm_inf_pnp_driver = {
615 .name = "tpm_inf_pnp", 615 .name = "tpm_inf_pnp",
616 .driver = { 616 .driver = {
617 .owner = THIS_MODULE, 617 .owner = THIS_MODULE,
@@ -625,12 +625,12 @@ static struct pnp_driver tpm_inf_pnp = {
625 625
626static int __init init_inf(void) 626static int __init init_inf(void)
627{ 627{
628 return pnp_register_driver(&tpm_inf_pnp); 628 return pnp_register_driver(&tpm_inf_pnp_driver);
629} 629}
630 630
631static void __exit cleanup_inf(void) 631static void __exit cleanup_inf(void)
632{ 632{
633 pnp_unregister_driver(&tpm_inf_pnp); 633 pnp_unregister_driver(&tpm_inf_pnp_driver);
634} 634}
635 635
636module_init(init_inf); 636module_init(init_inf);