Commit e1d42c98 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

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: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Cc: Marcel Selhorst <tpm@selhorst.net>
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ec03d707
...@@ -611,7 +611,7 @@ static __devexit void tpm_inf_pnp_remove(struct pnp_dev *dev) ...@@ -611,7 +611,7 @@ static __devexit void tpm_inf_pnp_remove(struct pnp_dev *dev)
} }
} }
static struct pnp_driver tpm_inf_pnp = { static struct pnp_driver tpm_inf_pnp_driver = {
.name = "tpm_inf_pnp", .name = "tpm_inf_pnp",
.driver = { .driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
...@@ -625,12 +625,12 @@ static struct pnp_driver tpm_inf_pnp = { ...@@ -625,12 +625,12 @@ static struct pnp_driver tpm_inf_pnp = {
static int __init init_inf(void) static int __init init_inf(void)
{ {
return pnp_register_driver(&tpm_inf_pnp); return pnp_register_driver(&tpm_inf_pnp_driver);
} }
static void __exit cleanup_inf(void) static void __exit cleanup_inf(void)
{ {
pnp_unregister_driver(&tpm_inf_pnp); pnp_unregister_driver(&tpm_inf_pnp_driver);
} }
module_init(init_inf); module_init(init_inf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment