drivers/pc80/tpm: Remove support code if TPM is disabled

Change-Id: I7015d4bf6f536c5cea8e1174db81f09f756ae0e5
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41873
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Christian Walter <christian.walter@9elements.com>
Reviewed-by: Michael Niewöhner
This commit is contained in:
Kyösti Mälkki 2020-05-29 19:42:07 +03:00 committed by Nico Huber
parent 1be23b0733
commit 9cc6493e8f
1 changed files with 3 additions and 2 deletions

View File

@ -993,6 +993,7 @@ static struct pnp_info pnp_dev_info[] = {
static void enable_dev(struct device *dev)
{
if (CONFIG(TPM1) || CONFIG(TPM2))
pnp_enable_devices(dev, &lpc_tpm_ops,
ARRAY_SIZE(pnp_dev_info), pnp_dev_info);
}