diff options
-rw-r--r-- | src/drivers/pc80/tpm/tis.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/pc80/tpm/tis.c b/src/drivers/pc80/tpm/tis.c index ed9c8d0e0b..1ae6f1dc92 100644 --- a/src/drivers/pc80/tpm/tis.c +++ b/src/drivers/pc80/tpm/tis.c @@ -832,6 +832,11 @@ static struct device_operations lpc_tpm_ops = { #endif }; +static struct device_operations noop_tpm_ops = { + .read_resources = noop_read_resources, + .set_resources = noop_set_resources, +}; + static struct pnp_info pnp_dev_info[] = { { .flags = PNP_IRQ0 } }; @@ -841,6 +846,8 @@ static void enable_dev(struct device *dev) if (CONFIG(TPM)) pnp_enable_devices(dev, &lpc_tpm_ops, ARRAY_SIZE(pnp_dev_info), pnp_dev_info); + else + pnp_enable_devices(dev, &noop_tpm_ops, ARRAY_SIZE(pnp_dev_info), pnp_dev_info); } struct chip_operations drivers_pc80_tpm_ops = { |