diff options
Diffstat (limited to 'drivers/char/tpm/tpm.c')
-rw-r--r-- | drivers/char/tpm/tpm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/tpm/tpm.c b/drivers/char/tpm/tpm.c index a9be0e8eaea5..5a3870477ef1 100644 --- a/drivers/char/tpm/tpm.c +++ b/drivers/char/tpm/tpm.c | |||
@@ -466,6 +466,7 @@ void tpm_remove_hardware(struct device *dev) | |||
466 | kfree(chip->vendor->miscdev.name); | 466 | kfree(chip->vendor->miscdev.name); |
467 | 467 | ||
468 | sysfs_remove_group(&dev->kobj, chip->vendor->attr_group); | 468 | sysfs_remove_group(&dev->kobj, chip->vendor->attr_group); |
469 | tpm_bios_log_teardown(chip->bios_dir); | ||
469 | 470 | ||
470 | dev_mask[chip->dev_num / TPM_NUM_MASK_ENTRIES ] &= | 471 | dev_mask[chip->dev_num / TPM_NUM_MASK_ENTRIES ] &= |
471 | ~(1 << (chip->dev_num % TPM_NUM_MASK_ENTRIES)); | 472 | ~(1 << (chip->dev_num % TPM_NUM_MASK_ENTRIES)); |
@@ -593,6 +594,8 @@ dev_num_search_complete: | |||
593 | 594 | ||
594 | sysfs_create_group(&dev->kobj, chip->vendor->attr_group); | 595 | sysfs_create_group(&dev->kobj, chip->vendor->attr_group); |
595 | 596 | ||
597 | chip->bios_dir = tpm_bios_log_setup(devname); | ||
598 | |||
596 | return 0; | 599 | return 0; |
597 | } | 600 | } |
598 | EXPORT_SYMBOL_GPL(tpm_register_hardware); | 601 | EXPORT_SYMBOL_GPL(tpm_register_hardware); |