Skip to content

Commit

Permalink
tpm: infineon section mismatch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Feb 6, 2008
1 parent ec03d70 commit e1d42c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/char/tpm/tpm_infineon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
.driver = {
.owner = THIS_MODULE,
Expand All @@ -625,12 +625,12 @@ static struct pnp_driver tpm_inf_pnp = {

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)
{
pnp_unregister_driver(&tpm_inf_pnp);
pnp_unregister_driver(&tpm_inf_pnp_driver);
}

module_init(init_inf);
Expand Down

0 comments on commit e1d42c9

Please sign in to comment.