Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329097
b: refs/heads/master
c: f84fdff
h: refs/heads/master
i:
  329095: 4902986
v: v3
  • Loading branch information
Xiaoyan Zhang authored and Kent Yoder committed Aug 22, 2012
1 parent f07761b commit 042eb72
Show file tree
Hide file tree
Showing 5 changed files with 476 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f862f0f96abdf8b030bda84d6b66d676f31785f
refs/heads/master: f84fdff0fdcda7e509ce530e0ee612233a2104fb
2 changes: 1 addition & 1 deletion trunk/drivers/char/tpm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
obj-$(CONFIG_TCG_TPM) += tpm.o
ifdef CONFIG_ACPI
obj-$(CONFIG_TCG_TPM) += tpm_bios.o
tpm_bios-objs += tpm_eventlog.o tpm_acpi.o
tpm_bios-objs += tpm_eventlog.o tpm_acpi.o tpm_ppi.o
else
ifdef CONFIG_TCG_IBMVTPM
obj-$(CONFIG_TCG_TPM) += tpm_bios.o
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/char/tpm/tpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1476,6 +1476,11 @@ struct tpm_chip *tpm_register_hardware(struct device *dev,
goto put_device;
}

if (sys_add_ppi(&dev->kobj)) {
misc_deregister(&chip->vendor.miscdev);
goto put_device;
}

chip->bios_dir = tpm_bios_log_setup(devname);

/* Make chip available */
Expand Down
9 changes: 9 additions & 0 deletions trunk/drivers/char/tpm/tpm.h
Original file line number Diff line number Diff line change
Expand Up @@ -327,3 +327,12 @@ extern int tpm_pm_suspend(struct device *);
extern int tpm_pm_resume(struct device *);
extern int wait_for_tpm_stat(struct tpm_chip *, u8, unsigned long,
wait_queue_head_t *);

#ifdef CONFIG_ACPI
extern ssize_t sys_add_ppi(struct kobject *parent);
#else
static inline ssize_t sys_add_ppi(struct kobject *parent)
{
return 0;
}
#endif
Loading

0 comments on commit 042eb72

Please sign in to comment.