From e05693e9388e4d5f6ebd4e9749a5806958604666 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Wed, 5 Jul 2023 11:43:09 +0200 Subject: [PATCH] pc80/tpm: Use newer function for resource declarations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Arthur Heymans Change-Id: I40b8482f41e8fece55fd60fec7ec3f63f83bd030 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76280 Reviewed-by: Kyösti Mälkki Tested-by: build bot (Jenkins) --- src/drivers/pc80/tpm/tis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/pc80/tpm/tis.c b/src/drivers/pc80/tpm/tis.c index ce88ae012d..435d0c9d51 100644 --- a/src/drivers/pc80/tpm/tis.c +++ b/src/drivers/pc80/tpm/tis.c @@ -711,7 +711,7 @@ static int tis_setup_interrupt(int vector, int polarity) static void lpc_tpm_read_resources(struct device *dev) { /* 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)