aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-04-12 18:36:15 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-04-12 18:36:15 -0400
commit17528b31c5e2b2d40bb52954af88849303ebb915 (patch)
tree70ca684e33a6579d12d5a887c86bfd3f74894e14 /drivers/char
parent9a9ca16e7a36a9daa93f6d2cf912170091d91ed6 (diff)
parent71150d226564686ef32d15d29edfd18346f6e929 (diff)
Merge branch 'pnp'
* pnp: PNP: Avoid leaving unregistered device objects in lists PNP: Convert pnp_lock into a mutex PNP: tty/serial/8250/8250_fintek: Use module_pnp_driver to register driver PNP: platform/x86/apple-gmux: Use module_pnp_driver to register driver PNP: net/sb1000: Use module_pnp_driver to register driver PNP: media/rc: Use module_pnp_driver to register driver PNP: ide/ide-pnp: Use module_pnp_driver to register driver PNP: ata/pata_isapnp: Use module_pnp_driver to register driver PNP: tpm/tpm_infineon: Use module_pnp_driver to register driver PNP: Add helper macro for pnp_register_driver boilerplate PNP / ACPI: Use ACPI_COMPANION_SET() during initialization
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/tpm/tpm_infineon.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/char/tpm/tpm_infineon.c b/drivers/char/tpm/tpm_infineon.c
index 6d492132ad2b..29ba520ac24d 100644
--- a/drivers/char/tpm/tpm_infineon.c
+++ b/drivers/char/tpm/tpm_infineon.c
@@ -637,18 +637,7 @@ static struct pnp_driver tpm_inf_pnp_driver = {
637 .remove = tpm_inf_pnp_remove 637 .remove = tpm_inf_pnp_remove
638}; 638};
639 639
640static int __init init_inf(void) 640module_pnp_driver(tpm_inf_pnp_driver);
641{
642 return pnp_register_driver(&tpm_inf_pnp_driver);
643}
644
645static void __exit cleanup_inf(void)
646{
647 pnp_unregister_driver(&tpm_inf_pnp_driver);
648}
649
650module_init(init_inf);
651module_exit(cleanup_inf);
652 641
653MODULE_AUTHOR("Marcel Selhorst <tpmdd@sirrix.com>"); 642MODULE_AUTHOR("Marcel Selhorst <tpmdd@sirrix.com>");
654MODULE_DESCRIPTION("Driver for Infineon TPM SLD 9630 TT 1.1 / SLB 9635 TT 1.2"); 643MODULE_DESCRIPTION("Driver for Infineon TPM SLD 9630 TT 1.1 / SLB 9635 TT 1.2");