diff options
Diffstat (limited to 'src/drivers/pc80/tpm/tis.c')
-rw-r--r-- | src/drivers/pc80/tpm/tis.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/pc80/tpm/tis.c b/src/drivers/pc80/tpm/tis.c index d811c52e90..3f863a36da 100644 --- a/src/drivers/pc80/tpm/tis.c +++ b/src/drivers/pc80/tpm/tis.c @@ -779,9 +779,11 @@ static void lpc_tpm_read_resources(struct device *dev) static void lpc_tpm_set_resources(struct device *dev) { - tpm_config_t *config = (tpm_config_t *)dev->chip_info; + struct drivers_pc80_tpm_config *config; DEVTREE_CONST struct resource *res; + config = (struct drivers_pc80_tpm_config *)dev->chip_info; + for (res = dev->resource_list; res; res = res->next) { if (!(res->flags & IORESOURCE_ASSIGNED)) continue; |