Kyösti Mälkki has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/41873 )
Change subject: drivers/pc80/tpm: Remove support code if TPM is disabled ......................................................................
drivers/pc80/tpm: Remove support code if TPM is disabled
Change-Id: I7015d4bf6f536c5cea8e1174db81f09f756ae0e5 Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com --- M src/drivers/pc80/tpm/tis.c 1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/41873/1
diff --git a/src/drivers/pc80/tpm/tis.c b/src/drivers/pc80/tpm/tis.c index 185df34..4cc6823 100644 --- a/src/drivers/pc80/tpm/tis.c +++ b/src/drivers/pc80/tpm/tis.c @@ -993,8 +993,9 @@
static void enable_dev(struct device *dev) { - pnp_enable_devices(dev, &lpc_tpm_ops, - ARRAY_SIZE(pnp_dev_info), pnp_dev_info); + if (CONFIG(TPM1) || CONFIG(TPM2)) + pnp_enable_devices(dev, &lpc_tpm_ops, + ARRAY_SIZE(pnp_dev_info), pnp_dev_info); }
struct chip_operations drivers_pc80_tpm_ops = {