tpm: Fix tpm init with no ACPI entry
PATCH 1/1 tpm: Fix tpm init with no ACPI entry
tpm_add_ppi fails without ACPI support now, but loading the tpm without an ACPI entry is a valid use case. This changes the init of the tpm to not fail when tpm_add_ppi fails.
Signed-off-by Derek Basehore <[email protected]>
--- drivers/char/tpm/tpm-interface.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/char/tpm/tpm-interface.c +1 -2
@@ -1094,8 +1094,7 @@ struct tpm_chip *tpm_register_hardware(struct device *dev,if (tpm_sysfs_add_device (chip)) goto del_misc; -if (tpm_add_ppi (&dev->kobj)) - goto del_misc; +tpm_add_ppi (&dev->kobj); chip->bios_dir =tpm_bios_log_setup (chip->devname);
Signature · 1 line
1.9.1.423.g4596e3a
Peter Huewe
maintainerHi Derek,
Is this a regression?
Do you know since when?
Thanks
Peter
---
Sent from my mobile.
This is a regression introduced in "ACPI / TPM: match node name instead of full path when searching for TPM device" which was authored on December 19, 2013.
Quoted 7 lines · Peter Huewe
Hi Derek,
Is this a regression?
Do you know since when?
Thanks
Peter
---
Sent from my mobile.