
From: Simon Glass <sjg@chromium.org> Update the size to the expected size of the device's mapping, to avoid a warning in map_physmem() about a partial map. Signed-off-by: Simon Glass <sjg@chromium.org> --- drivers/power/acpi_pmc/sandbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/acpi_pmc/sandbox.c b/drivers/power/acpi_pmc/sandbox.c index ed1bb198093..e48cdf8200e 100644 --- a/drivers/power/acpi_pmc/sandbox.c +++ b/drivers/power/acpi_pmc/sandbox.c @@ -70,7 +70,7 @@ static int sandbox_pmc_probe(struct udevice *dev) base = dm_pci_read_bar32(dev, 0); if (base == FDT_ADDR_T_NONE) return log_msg_ret("No base address", -EINVAL); - upriv->pmc_bar0 = map_sysmem(base, 0x2000); + upriv->pmc_bar0 = map_sysmem(base, 0x80); upriv->gpe_cfg = (u32 *)(upriv->pmc_bar0 + GPIO_GPE_CFG); return pmc_ofdata_to_uc_plat(dev); -- 2.43.0