pc80/tpm: Use newer function for resource declarations

Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: I40b8482f41e8fece55fd60fec7ec3f63f83bd030
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76280
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Arthur Heymans
2023-07-05 11:43:09 +02:00
committed by Kyösti Mälkki
parent ac66a272d3
commit e05693e938

View File

@@ -711,7 +711,7 @@ static int tis_setup_interrupt(int vector, int polarity)
static void lpc_tpm_read_resources(struct device *dev) static void lpc_tpm_read_resources(struct device *dev)
{ {
/* Static 5K memory region specified in Kconfig */ /* Static 5K memory region specified in Kconfig */
mmio_resource_kb(dev, 0, CONFIG_TPM_TIS_BASE_ADDRESS >> 10, 0x5000 >> 10); mmio_range(dev, 0, CONFIG_TPM_TIS_BASE_ADDRESS, 0x5000);
} }
static void lpc_tpm_set_resources(struct device *dev) static void lpc_tpm_set_resources(struct device *dev)