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:
parent
1be23b0733
commit
9cc6493e8f
|
@ -993,6 +993,7 @@ static struct pnp_info pnp_dev_info[] = {
|
||||||
|
|
||||||
static void enable_dev(struct device *dev)
|
static void enable_dev(struct device *dev)
|
||||||
{
|
{
|
||||||
|
if (CONFIG(TPM1) || CONFIG(TPM2))
|
||||||
pnp_enable_devices(dev, &lpc_tpm_ops,
|
pnp_enable_devices(dev, &lpc_tpm_ops,
|
||||||
ARRAY_SIZE(pnp_dev_info), pnp_dev_info);
|
ARRAY_SIZE(pnp_dev_info), pnp_dev_info);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue